Relayout on monitor layout changes
Currently we only relayout when the screen size changes, this gets the cases where a monitor gets added/removed but not when the primary monitor changes. We need to relayout on all monitor layout changes. Remove ShellGlobal::screen-size-changed signal as it is no longer used, Gdk is used to track changes now. A ShellGlobal::gdk-screen property is added for this purpose. https://bugzilla.gnome.org/show_bug.cgi?id=620377
This commit is contained in:
@ -159,7 +159,7 @@ function start() {
|
||||
global.stage.add_actor(background);
|
||||
background.lower_bottom();
|
||||
|
||||
global.connect('screen-size-changed', _relayout);
|
||||
global.gdk_screen.connect('monitors-changed', _relayout);
|
||||
|
||||
ExtensionSystem.init();
|
||||
ExtensionSystem.loadExtensions();
|
||||
|
@ -452,8 +452,8 @@ MessageTray.prototype = {
|
||||
Main.chrome.trackActor(this._notificationBin);
|
||||
Main.chrome.trackActor(this._summaryNotificationBin);
|
||||
|
||||
global.connect('screen-size-changed',
|
||||
Lang.bind(this, this._setSizePosition));
|
||||
global.gdk_screen.connect('monitors-changed', Lang.bind(this, this._setSizePosition));
|
||||
|
||||
this._setSizePosition();
|
||||
|
||||
Main.overview.connect('showing', Lang.bind(this,
|
||||
|
Reference in New Issue
Block a user