messageTray: Take over trayBox from LayoutManager
Since commit e189a34
, the trayBox uses a Contraint to cover the primary
monitor's work area. This allows banners to be clipped so they don't
leak into monitors above the primary one during animations. However even
without being reactive, the trayBox now interferes with operations like
Looking Glass' object picker and overview DND.
With the trayBox no longer being positioned manually, there's no strong
reason to keep it in LayoutManager, and handling it in MessageTray allows
to hide the actor while no banner is showing, which helps with the issue
outlined above.
https://bugzilla.gnome.org/show_bug.cgi?id=744912
This commit is contained in:
@ -236,11 +236,6 @@ const LayoutManager = new Lang.Class({
|
||||
this.panelBox.connect('allocation-changed',
|
||||
Lang.bind(this, this._panelBoxChanged));
|
||||
|
||||
this.trayBox = new St.Widget({ name: 'trayBox',
|
||||
clip_to_allocation: true,
|
||||
layout_manager: new Clutter.BinLayout() });
|
||||
this.addChrome(this.trayBox, { affectsInputRegion: false });
|
||||
|
||||
this.modalDialogGroup = new St.Widget({ name: 'modalDialogGroup',
|
||||
layout_manager: new Clutter.BinLayout() });
|
||||
this.uiGroup.add_actor(this.modalDialogGroup);
|
||||
@ -284,12 +279,6 @@ const LayoutManager = new Lang.Class({
|
||||
init: function() {
|
||||
Main.sessionMode.connect('updated', Lang.bind(this, this._sessionUpdated));
|
||||
|
||||
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();
|
||||
},
|
||||
|
||||
@ -599,7 +588,6 @@ const LayoutManager = new Lang.Class({
|
||||
// the UI group to get the correct allocation for the struts.
|
||||
this._updateRegions();
|
||||
|
||||
this.trayBox.hide();
|
||||
this.keyboardBox.hide();
|
||||
|
||||
let monitor = this.primaryMonitor;
|
||||
@ -666,7 +654,6 @@ const LayoutManager = new Lang.Class({
|
||||
|
||||
this._startingUp = false;
|
||||
|
||||
this.trayBox.show();
|
||||
this.keyboardBox.show();
|
||||
|
||||
if (!Main.sessionMode.isGreeter) {
|
||||
|
Reference in New Issue
Block a user