workspaceThumbnail: fix stacking for newly added actors

We don't necessarily get a syncStacking call when an actor is added
at the top of the workspace, so make sure to set the stackAbove value
for it correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=642329
This commit is contained in:
Owen W. Taylor 2011-02-14 16:09:10 -05:00
parent 9af03194b9
commit 89cc6807e0

View File

@ -317,6 +317,11 @@ WorkspaceThumbnail.prototype = {
}));
this._contents.add_actor(clone.actor);
if (this._windows.length == 0)
clone.setStackAbove(this._background);
else
clone.setStackAbove(this._windows[this._windows.length - 1].actor);
this._windows.push(clone);
return clone;