From b99af0f20b0eefb61d61247a0f4c4b7ea129df71 Mon Sep 17 00:00:00 2001 From: lenemter Date: Thu, 23 Oct 2025 18:47:27 +0300 Subject: [PATCH] Put menu windows on top --- src/WindowManager.vala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/WindowManager.vala b/src/WindowManager.vala index f18f6577e..281591a18 100644 --- a/src/WindowManager.vala +++ b/src/WindowManager.vala @@ -49,6 +49,8 @@ namespace Gala { */ public Clutter.Actor shell_group { get; private set; } + private Clutter.Actor menu_group { get; set; } + /** * {@inheritDoc} */ @@ -223,6 +225,7 @@ namespace Gala { * +-- window switcher * +-- window overview * +-- shell group + * +-- menu group * +-- feedback group (e.g. DND icons) * +-- pointer locator * +-- dwell click timer @@ -291,6 +294,9 @@ namespace Gala { shell_group = new Clutter.Actor (); ui_group.add_child (shell_group); + menu_group = new Clutter.Actor (); + ui_group.add_child (menu_group); + var feedback_group = display.get_compositor ().get_feedback_group (); stage.remove_child (feedback_group); ui_group.add_child (feedback_group); @@ -1018,6 +1024,14 @@ namespace Gala { if (NotificationStack.is_notification (window)) { notification_stack.show_notification (actor); } + + if (window.window_type == MENU || + window.window_type == DROPDOWN_MENU || + window.window_type == POPUP_MENU || + window.window_type == TOOLTIP + ) { + InternalUtils.clutter_actor_reparent (actor, menu_group); + } } /*