Workspace: fix stacking of window clones
We must set the stack above property of window clones, or they will not stack themselves properly when a drag is cancelled. https://bugzilla.gnome.org/show_bug.cgi?id=694292
This commit is contained in:
parent
8bcb10391e
commit
ad71b969b2
@ -1349,6 +1349,11 @@ const Workspace = new Lang.Class({
|
|||||||
|
|
||||||
overlay.connect('show-close-button', Lang.bind(this, this._onShowOverlayClose));
|
overlay.connect('show-close-button', Lang.bind(this, this._onShowOverlayClose));
|
||||||
|
|
||||||
|
if (this._windows.length == 0)
|
||||||
|
clone.setStackAbove(null);
|
||||||
|
else
|
||||||
|
clone.setStackAbove(this._windows[this._windows.length - 1].actor);
|
||||||
|
|
||||||
this._windows.push(clone);
|
this._windows.push(clone);
|
||||||
this._windowOverlays.push(overlay);
|
this._windowOverlays.push(overlay);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user