summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-05 18:34:26 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-05 18:34:26 +0000
commit976b44443ae1603699a5fc4ef1eb3c6e0f5886c8 (patch)
tree84c0156a1f38551efe838aaab86af2bd15a099df /src/managers/input/InputManager.cpp
parent6553fb5a40f5f10f10c2b6aebd143044af40ab59 (diff)
ignore constraints on exclusiveClient create
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index c3a589ab..3f9c3b83 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -72,7 +72,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
// constraints
// All constraints TODO: multiple mice?
- if (g_pCompositor->m_sSeat.mouse->currentConstraint) {
+ if (g_pCompositor->m_sSeat.mouse->currentConstraint && !g_pCompositor->m_sSeat.exclusiveClient) {
// XWayland windows sometimes issue constraints weirdly.
// TODO: We probably should search their parent. wlr_xwayland_surface->parent
const auto CONSTRAINTWINDOW = g_pCompositor->getConstraintWindow(g_pCompositor->m_sSeat.mouse);