From 5e48e6b075cdf4cda28f1a39e01acf3b316097a2 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 28 Feb 2023 21:45:57 +0000 Subject: [PATCH] Added mouseButton event --- src/managers/input/InputManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 042e19dd..2cd35326 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -360,6 +360,8 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { void CInputManager::onMouseButton(wlr_pointer_button_event* e) { wlr_idle_notify_activity(g_pCompositor->m_sWLRIdle, g_pCompositor->m_sSeat.seat); + EMIT_HOOK_EVENT("mouseButton", e); + m_tmrLastCursorMovement.reset(); if (e->state == WLR_BUTTON_PRESSED) {