Improve support for multihead setups
Fix panel, app switcher, and looking glass to limit themselves to the primary monitor, and run dialog to limit itself to the monitor containing the currently-focused window. The overview is also limited to the primary monitor now (with the other monitors being blacked out), although the workspaces within the overview are shaped like the full "screen" (the bounding box of all monitors). To be fixed later. https://bugzilla.gnome.org/show_bug.cgi?id=593060
This commit is contained in:
@ -105,8 +105,10 @@ AltTabPopup.prototype = {
|
||||
global.screen_height);
|
||||
|
||||
this.actor.show_all();
|
||||
this.actor.x = Math.floor((global.screen_width - this.actor.width) / 2);
|
||||
this.actor.y = Math.floor((global.screen_height - this.actor.height) / 2);
|
||||
|
||||
let primary = global.get_primary_monitor();
|
||||
this.actor.x = primary.x + Math.floor((primary.width - this.actor.width) / 2);
|
||||
this.actor.y = primary.y + Math.floor((primary.height - this.actor.height) / 2);
|
||||
|
||||
this._updateSelection(initialSelection);
|
||||
|
||||
|
Reference in New Issue
Block a user