Skip to content

Commit ff031bc

Browse files
committed
Fix panel sometimes being behind windows
1 parent 0662357 commit ff031bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ShellClients/PanelClone.vala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ public class Gala.PanelClone : Object {
7777

7878
private void update_visible () {
7979
actor.visible = !panel_hidden;
80+
81+
if (actor.visible && !wm.get_display ().get_monitor_in_fullscreen (panel.window.get_monitor ())) {
82+
// The actor has just been revealed, make sure it's at the top
83+
// https://github.com/elementary/gala/issues/2080
84+
actor.get_parent ().set_child_above_sibling (actor, null);
85+
}
8086
}
8187

8288
private void update_clone_position () {

0 commit comments

Comments
 (0)