https://bugs.freedesktop.org/show_bug.cgi?id=103298

Alban Browaeys <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Alban Browaeys <[email protected]> ---
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.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to