summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-01-30 16:24:41 +0000
committerVaxry <vaxry@vaxry.net>2024-01-30 16:24:41 +0000
commitc51b3fb06f48657bcf66a92eca3de04066a9c8ef (patch)
treea021c5bee81f86e6ec711f7718feffb0ca4b469f /src/events/Windows.cpp
parent3ff59e7e1d859daa503b88ef125d087bc100abfe (diff)
events: ignore sending mouse enter to focused if a constraint is active
fixes #4186
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 48b6b3ac..cf5d0ab5 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -639,7 +639,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
g_pCompositor->setPreferredScaleForSurface(PWINDOW->m_pWLSurface.wlr(), PMONITOR->scale);
g_pCompositor->setPreferredTransformForSurface(PWINDOW->m_pWLSurface.wlr(), PMONITOR->transform);
- g_pInputManager->sendMotionEventsToFocused();
+ if (!g_pCompositor->m_sSeat.mouse || !g_pCompositor->m_sSeat.mouse->constraintActive)
+ g_pInputManager->sendMotionEventsToFocused();
// fix some xwayland apps that don't behave nicely
PWINDOW->m_vReportedSize = PWINDOW->m_vPendingReportedSize;