[gnome-shell/wip/rewindow: 8/12] workspace: Have a stable window order
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rewindow: 8/12] workspace: Have a stable window order
- Date: Tue, 21 Aug 2012 14:41:52 +0000 (UTC)
commit 0b833e13889c38937b2af802d5f2197a85efc2f2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Aug 8 18:17:11 2012 -0300
workspace: Have a stable window order
https://bugzilla.gnome.org/show_bug.cgi?id=582650
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 11258dd..862828f 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1028,6 +1028,11 @@ const Workspace = new Lang.Class({
}
let clones = this._windows.slice();
+
+ clones.sort(function(a, b) {
+ return a.metaWindow.get_stable_sequence() - b.metaWindow.get_stable_sequence();
+ });
+
if (this._reservedSlot)
clones.push(this._reservedSlot);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]