Added mouseButton event

This commit is contained in:
vaxerski 2023-02-28 21:45:57 +00:00
parent 72fc309fb1
commit 5e48e6b075

View file

@ -360,6 +360,8 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
void CInputManager::onMouseButton(wlr_pointer_button_event* e) { void CInputManager::onMouseButton(wlr_pointer_button_event* e) {
wlr_idle_notify_activity(g_pCompositor->m_sWLRIdle, g_pCompositor->m_sSeat.seat); wlr_idle_notify_activity(g_pCompositor->m_sWLRIdle, g_pCompositor->m_sSeat.seat);
EMIT_HOOK_EVENT("mouseButton", e);
m_tmrLastCursorMovement.reset(); m_tmrLastCursorMovement.reset();
if (e->state == WLR_BUTTON_PRESSED) { if (e->state == WLR_BUTTON_PRESSED) {