From 5627b70981730cf1839ae4477f9fd086d4fc7a6c Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sat, 20 May 2023 21:15:21 +0200 Subject: [PATCH] input: reset cursor hide timer on tablet --- src/managers/input/Tablets.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/managers/input/Tablets.cpp b/src/managers/input/Tablets.cpp index 01b8dcec..41ce2ca1 100644 --- a/src/managers/input/Tablets.cpp +++ b/src/managers/input/Tablets.cpp @@ -40,12 +40,14 @@ void CInputManager::newTabletTool(wlr_input_device* pDevice) { case WLR_TABLET_TOOL_TYPE_MOUSE: wlr_cursor_move(g_pCompositor->m_sWLRCursor, PTAB->wlrDevice, EVENT->dx, EVENT->dy); g_pInputManager->refocus(); + g_pInputManager->m_tmrLastCursorMovement.reset(); break; default: double x = (EVENT->updated_axes & WLR_TABLET_TOOL_AXIS_X) ? EVENT->x : NAN; double y = (EVENT->updated_axes & WLR_TABLET_TOOL_AXIS_Y) ? EVENT->y : NAN; wlr_cursor_warp_absolute(g_pCompositor->m_sWLRCursor, PTAB->wlrDevice, x, y); g_pInputManager->refocus(); + g_pInputManager->m_tmrLastCursorMovement.reset(); break; }