mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 06:06:00 +01:00
libinput: Update switch state in libinput event (#38)
This commit is contained in:
parent
7c3565f9be
commit
339337cc7b
1 changed files with 1 additions and 0 deletions
|
@ -640,6 +640,7 @@ void Aquamarine::CSession::handleLibinputEvent(libinput_event* e) {
|
||||||
|
|
||||||
if (ENABLED == hlDevice->switchy->state)
|
if (ENABLED == hlDevice->switchy->state)
|
||||||
return;
|
return;
|
||||||
|
hlDevice->switchy->state = ENABLED;
|
||||||
|
|
||||||
switch (libinput_event_switch_get_switch(se)) {
|
switch (libinput_event_switch_get_switch(se)) {
|
||||||
case LIBINPUT_SWITCH_LID: hlDevice->switchy->type = ISwitch::AQ_SWITCH_TYPE_LID; break;
|
case LIBINPUT_SWITCH_LID: hlDevice->switchy->type = ISwitch::AQ_SWITCH_TYPE_LID; break;
|
||||||
|
|
Loading…
Reference in a new issue