From 339337cc7b32ddda02f874817059a426bcf4ef16 Mon Sep 17 00:00:00 2001 From: toamz <39005598+toamz@users.noreply.github.com> Date: Sat, 3 Aug 2024 13:57:30 +0200 Subject: [PATCH] libinput: Update switch state in libinput event (#38) --- src/backend/Session.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/Session.cpp b/src/backend/Session.cpp index c6631e5..be8f4bb 100644 --- a/src/backend/Session.cpp +++ b/src/backend/Session.cpp @@ -640,6 +640,7 @@ void Aquamarine::CSession::handleLibinputEvent(libinput_event* e) { if (ENABLED == hlDevice->switchy->state) return; + hlDevice->switchy->state = ENABLED; switch (libinput_event_switch_get_switch(se)) { case LIBINPUT_SWITCH_LID: hlDevice->switchy->type = ISwitch::AQ_SWITCH_TYPE_LID; break;