libinput: Update switch state in libinput event (#38)

This commit is contained in:
toamz 2024-08-03 13:57:30 +02:00 committed by GitHub
parent 7c3565f9be
commit 339337cc7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;