[Wayland-bugs] [Bug 103298] infinite loop when lid events are repeated - list item points to itself
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Oct 16 17:07:46 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=103298
Alban Browaeys <prahal at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |prahal at yahoo.com
--- Comment #1 from Alban Browaeys <prahal at yahoo.com> ---
Created attachment 134868
--> https://bugs.freedesktop.org/attachment.cgi?id=134868&action=edit
debounce lid events
The patch remove the event before adding it anew. It applies against 1.8.3
which is the version I tested against (debian sid).
This fixes the issue that the same event is inserted twice into the list. That
we then ends up with a list item that points to itself.
I also safeguards the removal of this event listener by this
keyboard_is_monitored flag.
The flag tells we already attached this keyboard listener so that even if the
state is_closed is not switched yet we avoid duplicates.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171016/c81b6820/attachment-0001.html>
More information about the wayland-bugs
mailing list