summaryrefslogtreecommitdiff
path: root/src/managers/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-21 19:28:43 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-21 19:28:43 +0100
commit3d61738d5d4bec859748552869a833382fe324f5 (patch)
tree9b75ef94e7dc43899b3c399096931e06db1d4f4b /src/managers/InputManager.cpp
parent295a0c4a6904b639ae406df2f106eb35d71899ae (diff)
minor QoL patches
Diffstat (limited to 'src/managers/InputManager.cpp')
-rw-r--r--src/managers/InputManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp
index af1a3856..d39767e0 100644
--- a/src/managers/InputManager.cpp
+++ b/src/managers/InputManager.cpp
@@ -193,4 +193,8 @@ void CInputManager::onKeyboardKey(wlr_event_keyboard_key* e, SKeyboard* pKeyboar
void CInputManager::onKeyboardMod(void* data, SKeyboard* pKeyboard) {
wlr_seat_set_keyboard(g_pCompositor->m_sWLRSeat, pKeyboard->keyboard);
wlr_seat_keyboard_notify_modifiers(g_pCompositor->m_sWLRSeat, &pKeyboard->keyboard->keyboard->modifiers);
+}
+
+void CInputManager::refocus() {
+ mouseMoveUnified(0);
} \ No newline at end of file