Skip to content

Commit

Permalink
libinput: Update switch state in libinput event (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
toamz authored Aug 3, 2024
1 parent 7c3565f commit 339337c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 339337c

Please sign in to comment.