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:
Peter Hutterer 2017-05-22 14:28:31 +10:00
parent a2a8db261a
commit 782a0661d1

View file

@ -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,