diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-18 13:41:48 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-18 13:41:48 +0200 |
| commit | 8e14f3a08d47586f40233f3736b74fd5c021fe74 (patch) | |
| tree | 45fc501c1e68499fec9b96d3a5ae0d29505c5d3d /src/managers/InputManager.cpp | |
| parent | 80fc30d03ec4dced4816eef585b30cd109d1b4c7 (diff) | |
fix mouse glitches on clicks in constrained
Diffstat (limited to 'src/managers/InputManager.cpp')
| -rw-r--r-- | src/managers/InputManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp index 3928dc1c..1f5b125b 100644 --- a/src/managers/InputManager.cpp +++ b/src/managers/InputManager.cpp @@ -156,7 +156,8 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) { switch (e->state) { case WLR_BUTTON_PRESSED: - refocus(); + if (!g_pCompositor->m_sSeat.mouse->currentConstraint) + refocus(); // if clicked on a floating window make it top if (g_pCompositor->windowValidMapped(g_pCompositor->m_pLastWindow) && g_pCompositor->m_pLastWindow->m_bIsFloating) @@ -352,7 +353,6 @@ void CInputManager::recheckConstraint(SMouse* pMouse) { if (!pMouse->currentConstraint) return; - const auto MOUSECOORDS = getMouseCoordsInternal(); const auto PREGION = &pMouse->currentConstraint->region; if (pMouse->currentConstraint->type == WLR_POINTER_CONSTRAINT_V1_CONFINED) { |
