workspaceThumbnail: initialize porthole based on workArea
https://bugzilla.gnome.org/show_bug.cgi?id=792687
This commit is contained in:
parent
c29bd46e7a
commit
b99e304f1e
@ -275,8 +275,8 @@ var WorkspaceThumbnail = new Lang.Class({
|
|||||||
|
|
||||||
this._createBackground();
|
this._createBackground();
|
||||||
|
|
||||||
let monitor = Main.layoutManager.primaryMonitor;
|
let workArea = Main.layoutManager.getWorkAreaForMonitor(this.monitorIndex);
|
||||||
this.setPorthole(monitor.x, monitor.y, monitor.width, monitor.height);
|
this.setPorthole(workArea.x, workArea.y, workArea.width, workArea.height);
|
||||||
|
|
||||||
let windows = global.get_window_actors().filter(actor => {
|
let windows = global.get_window_actors().filter(actor => {
|
||||||
let win = actor.meta_window;
|
let win = actor.meta_window;
|
||||||
@ -321,8 +321,6 @@ var WorkspaceThumbnail = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setPorthole(x, y, width, height) {
|
setPorthole(x, y, width, height) {
|
||||||
this._portholeX = x;
|
|
||||||
this._portholeY = y;
|
|
||||||
this.actor.set_size(width, height);
|
this.actor.set_size(width, height);
|
||||||
this._contents.set_position(-x, -y);
|
this._contents.set_position(-x, -y);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user