summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-05-31 20:59:38 +0200
committervaxerski <vaxry@vaxry.net>2023-05-31 20:59:38 +0200
commitbaf81cdc5d595b97ea9d1561315f7982720124a1 (patch)
treef43bd125a744ae6a77bd04ffc606258be4d2e794 /src/managers/input/InputManager.cpp
parent9f72d508ae41e8de31aebcc6d5407b063af6ed09 (diff)
input: force focus on movefocus
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 79b71c95..9f72603f 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -98,6 +98,12 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
if (*PZOOMFACTOR != 1.f)
g_pHyprRenderer->damageMonitor(PMONITOR);
+ if (m_pForcedFocus) {
+ pFoundWindow = m_pForcedFocus;
+ surfacePos = pFoundWindow->m_vRealPosition.vec();
+ foundSurface = m_pForcedFocus->m_pWLSurface.wlr();
+ }
+
// constraints
// All constraints TODO: multiple mice?
if (g_pCompositor->m_sSeat.mouse && g_pCompositor->m_sSeat.mouse->currentConstraint && !g_pCompositor->m_sSeat.exclusiveClient && !g_pSessionLockManager->isSessionLocked()) {