From 3d61738d5d4bec859748552869a833382fe324f5 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 21 Mar 2022 19:28:43 +0100 Subject: minor QoL patches --- src/managers/InputManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/managers/InputManager.cpp') 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 -- cgit v1.2.3