summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-02-28 21:45:57 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-02-28 21:45:57 +0000
commit5e48e6b075cdf4cda28f1a39e01acf3b316097a2 (patch)
treedb7ff3c067579279d1135d437588be6f3bb0c68e /src/managers/input/InputManager.cpp
parent72fc309fb14e0651448f35d08753dba772a5a409 (diff)
Added mouseButton event
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp2
1 files changed, 2 insertions, 0 deletions
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) {