[gnome-shell] Workspace: fix stacking of window clones
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Workspace: fix stacking of window clones
- Date: Wed, 20 Feb 2013 19:57:28 +0000 (UTC)
commit ad71b969b261bff758e860d99a1f14101e166bb5
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Feb 20 19:33:29 2013 +0100
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
js/ui/workspace.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 049745f..bf951d0 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1349,6 +1349,11 @@ const Workspace = new Lang.Class({
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._windowOverlays.push(overlay);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]