Skip to content

display: Properly store later ID when adding window to queue

Sebastian Keller requested to merge skeller/mutter:fix-display-window-queue into main

Main commit:

The code is already trying to avoid creating new laters when there
already is one for the queue type, but this wasn't working because the
ID of the later was never stored after creating a new one. This would
then result in as many laters as meta_display_queue_window() was called
and all of them would run the handler function, even if only the first
one had a non-empty window queue.

Similarly this was causing the later to not be removed if the window
queue got empty after meta_display_unqueue_window().

See #2269 (comment 1450705) for some context.

Regarding my concerns about the focus sentinel: The sentinel seems to be for sloppy/mouse focus. Neither of these seem to be currently working in X11 or Wayland anyway and this MR doesn't change anything about that.

Merge request reports