Jonas Dreßler 58290cca57 window: Stop event propagation for drag and window-menu triggering events
meta_window_handle_ungrabbed_event() triggers the show of the window menu in
gnome-shell via meta_window_show_menu() on hold of Meta + right mouse button
click.

Since meta_display_handle_event() was refactored lately and now forwards a
lot more events to Clutter (including the one triggering the window menu),
gnome-shell now sees this event after the menu has opened, figures that the
source-actor is outside of the menu, and immediately closes the menu again.

This is the correct behavior from the PopupMenuManager on the gnome-shell
side, it is the responsibility of the event handler that opens the menu (aka
meta_window_handle_ungrabbed_event()) to return CLUTTER_EVENT_STOP and stop
event propagation.

So fix this issue by adding a return value to
meta_window_handle_ungrabbed_event() and stopping event propagation in case
the event opened the window menu.

While at it, also return CLUTTER_EVENT_STOP for events triggering window
drags, so we can drop the extra check for that in
meta_display_handle_event().

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3623>
2024-03-04 09:59:59 +00:00
..
2023-05-24 14:16:41 +02:00
2019-03-12 00:27:07 +00:00
2023-11-03 11:36:07 +00:00
2024-01-10 13:58:18 +00:00
2023-08-07 22:24:36 +00:00
2023-08-30 08:48:23 +02:00
2023-08-30 08:48:23 +02:00
2023-12-01 14:25:08 +00:00
2023-12-01 14:25:08 +00:00
2023-08-30 08:48:23 +02:00
2023-08-07 22:24:36 +00:00
2023-08-30 08:48:23 +02:00
2023-08-30 08:48:23 +02:00
2023-08-30 08:48:23 +02:00
2024-02-19 20:19:41 +01:00
2023-08-07 22:24:36 +00:00
2023-08-30 08:48:23 +02:00
2024-02-21 16:01:00 +01:00
2023-05-24 14:16:41 +02:00
2024-02-21 16:01:00 +01:00
2023-08-12 19:53:46 +00:00