libinput: Update switch state in libinput event (#38)
This commit is contained in:
parent
7c3565f9be
commit
339337cc7b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue