From d6c2553af2fc42b3ea61a1bd5f6e2cc395deccbe Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 17 Mar 2022 16:56:33 +0100 Subject: start handling monitors --- src/input/InputManager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/input/InputManager.cpp') diff --git a/src/input/InputManager.cpp b/src/input/InputManager.cpp index 3140e22d..4e099593 100644 --- a/src/input/InputManager.cpp +++ b/src/input/InputManager.cpp @@ -14,4 +14,9 @@ void CInputManager::onMouseMoved(wlr_event_pointer_motion* e) { wlr_cursor_move(g_pCompositor->m_sWLRCursor, e->device, delta.floor().x, delta.floor().y); } -} \ No newline at end of file +} + +void CInputManager::onMouseWarp(wlr_event_pointer_motion_absolute* e) { + wlr_cursor_warp_absolute(g_pCompositor->m_sWLRCursor, e->device, e->x, e->y); +} + -- cgit v1.2.3