[gnome-shell] workspaceThumbnail: fix stacking for newly added actors
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspaceThumbnail: fix stacking for newly added actors
- Date: Sun, 20 Feb 2011 17:40:08 +0000 (UTC)
commit 89cc6807e0d4afb94abc4334ced3baab765e0ce9
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon Feb 14 16:09:10 2011 -0500
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
js/ui/workspaceThumbnail.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js
index f555bba..6d44e23 100644
--- a/js/ui/workspaceThumbnail.js
+++ b/js/ui/workspaceThumbnail.js
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]