From f6c84d61859a1a9012f6b36353de6c597b8d020c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 14 Feb 2015 16:03:28 +0100 Subject: [PATCH] layout: Don't offset trayBox when panel is hidden The panel is not visible when in fullscreen, but critical notifications may still be shown - having them pop out from where the panel would be looks unpolished, so adjust the trayBox accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=744850 --- js/ui/layout.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/layout.js b/js/ui/layout.js index 3f9a05c31..802c83511 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -287,6 +287,9 @@ const LayoutManager = new Lang.Class({ let trayConstraint = new MonitorConstraint({ primary: true, work_area: true }); this.trayBox.add_constraint(trayConstraint); + this.panelBox.bind_property('visible', trayConstraint, 'work-area', + GObject.BindingFlags.SYNC_CREATE); + this._loadBackground(); },