Update switch state in libinput event

This commit is contained in:
toamz 2024-08-03 10:30:16 +02:00
parent 7c3565f9be
commit 7b58060086
No known key found for this signature in database
GPG Key ID: 3BBE197772C1D1DF
1 changed files with 1 additions and 0 deletions

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;