From 44b72823c2c3b5c71bf9617aea405c585d8ecab6 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 20 Mar 2024 13:46:00 +0200 Subject: [PATCH] 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. --- src/screenedge.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/screenedge.cpp b/src/screenedge.cpp index a15b0a14c6..3a114635c8 100644 --- a/src/screenedge.cpp +++ b/src/screenedge.cpp @@ -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