Fix overview to show on the correct monitor
When tweening the overview in, tween it to appear on the correct position of the primary monitor, not at (0,0); position the 'backOver' actor to cover all monitors properly. Reported by Rui Matos https://bugzilla.gnome.org/show_bug.cgi?id=597721
This commit is contained in:
parent
4c6f770dea
commit
a81a16801d
@ -191,7 +191,9 @@ Overview.prototype = {
|
|||||||
this._addButtonX = this._workspacesX + this._workspacesWidth - addRemoveButtonSize;
|
this._addButtonX = this._workspacesX + this._workspacesWidth - addRemoveButtonSize;
|
||||||
this._addButtonY = primary.height - Math.floor(displayGridRowHeight * 4/5);
|
this._addButtonY = primary.height - Math.floor(displayGridRowHeight * 4/5);
|
||||||
|
|
||||||
this._backOver.set_position(0, 0);
|
// The parent (this._group) is positioned at the top left of the primary monitor
|
||||||
|
// while this._backOver occupies the entire screen.
|
||||||
|
this._backOver.set_position(- primary.x, - primary.y);
|
||||||
this._backOver.set_size(global.screen_width, global.screen_height);
|
this._backOver.set_size(global.screen_width, global.screen_height);
|
||||||
|
|
||||||
this._paneContainer.set_position(this._dash.actor.x + this._dash.actor.width + DEFAULT_PADDING,
|
this._paneContainer.set_position(this._dash.actor.x + this._dash.actor.width + DEFAULT_PADDING,
|
||||||
@ -324,9 +326,10 @@ Overview.prototype = {
|
|||||||
// The opposite transition is used in hide().
|
// The opposite transition is used in hide().
|
||||||
this._group.scaleX = this._group.scaleY = this.getZoomedInScale();
|
this._group.scaleX = this._group.scaleY = this.getZoomedInScale();
|
||||||
[this._group.x, this._group.y] = this.getZoomedInPosition();
|
[this._group.x, this._group.y] = this.getZoomedInPosition();
|
||||||
|
let primary = global.get_primary_monitor();
|
||||||
Tweener.addTween(this._group,
|
Tweener.addTween(this._group,
|
||||||
{ x: 0,
|
{ x: primary.x,
|
||||||
y: 0,
|
y: primary.y,
|
||||||
scaleX: 1,
|
scaleX: 1,
|
||||||
scaleY: 1,
|
scaleY: 1,
|
||||||
transition: 'easeOutQuad',
|
transition: 'easeOutQuad',
|
||||||
|
Loading…
Reference in New Issue
Block a user