mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 01:48:03 +02:00
lid: add a comment for why we post the switch state there
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
a2a8db261a
commit
782a0661d1
1 changed files with 4 additions and 0 deletions
|
|
@ -74,6 +74,10 @@ lid_switch_keyboard_event(uint64_t time,
|
|||
* regardless. */
|
||||
}
|
||||
|
||||
/* Posting the event here means we preempt the keyboard events that
|
||||
* caused us to wake up, so the lid event is always passed on before
|
||||
* the key event.
|
||||
*/
|
||||
dispatch->lid_is_closed = false;
|
||||
switch_notify_toggle(&dispatch->device->base,
|
||||
time,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue