Don't trigger screen edge if the pointer is constrained

If the pointer is constrained, the screen edge may push the cursor back,
which will work not as expected. It's also undesired to trigger the screen
edge while the pointer is constrained by some surface, in general.
This commit is contained in:
Vlad Zahorodnii 2024-03-20 13:46:00 +02:00
parent 6412fd2c34
commit 44b72823c2

View file

@ -225,6 +225,10 @@ void Edge::unreserve(QObject *object)
bool Edge::activatesForPointer() const
{
if (input()->pointer()->isConstrained()) {
return false;
}
bool isMovingWindow = false;
// Most actions do not handle drag and drop properly yet