Skip to content

Commit b99af0f

Browse files
committed
Put menu windows on top
1 parent 64e0478 commit b99af0f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/WindowManager.vala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ namespace Gala {
4949
*/
5050
public Clutter.Actor shell_group { get; private set; }
5151

52+
private Clutter.Actor menu_group { get; set; }
53+
5254
/**
5355
* {@inheritDoc}
5456
*/
@@ -223,6 +225,7 @@ namespace Gala {
223225
* +-- window switcher
224226
* +-- window overview
225227
* +-- shell group
228+
* +-- menu group
226229
* +-- feedback group (e.g. DND icons)
227230
* +-- pointer locator
228231
* +-- dwell click timer
@@ -291,6 +294,9 @@ namespace Gala {
291294
shell_group = new Clutter.Actor ();
292295
ui_group.add_child (shell_group);
293296

297+
menu_group = new Clutter.Actor ();
298+
ui_group.add_child (menu_group);
299+
294300
var feedback_group = display.get_compositor ().get_feedback_group ();
295301
stage.remove_child (feedback_group);
296302
ui_group.add_child (feedback_group);
@@ -1018,6 +1024,14 @@ namespace Gala {
10181024
if (NotificationStack.is_notification (window)) {
10191025
notification_stack.show_notification (actor);
10201026
}
1027+
1028+
if (window.window_type == MENU ||
1029+
window.window_type == DROPDOWN_MENU ||
1030+
window.window_type == POPUP_MENU ||
1031+
window.window_type == TOOLTIP
1032+
) {
1033+
InternalUtils.clutter_actor_reparent (actor, menu_group);
1034+
}
10211035
}
10221036

10231037
/*

0 commit comments

Comments
 (0)