Skip to content

media-keys: Add power key debounce for 1s

Windows requires BIOS to provide event for it to descriminate long press and short press. Some BIOS vendor design it by emit two power key event while pressing and releaing power key. For gnome-session, it will wronly handle two consecutive closed power key event, then cause the device shutdown directly. Add a debounce time for correcting the behaviour. The gnome-session discussion: gnome-session!46 (closed)

Merge request reports