[gnome-shell-extensions] window-list: Fix stupid thinko
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] window-list: Fix stupid thinko
- Date: Tue, 27 May 2014 17:10:22 +0000 (UTC)
commit f93234e442492ecd1288d70fdfc387fff157ea7e
Author: Florian Müllner <fmuellner gnome org>
Date: Fri May 23 00:59:42 2014 +0200
window-list: Fix stupid thinko
Without special casing the start value of 0, we did not reduce
to the minimum stable sequence of app windows, but 0.
extensions/window-list/extension.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 9a1c08d..19bade7 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -59,7 +59,8 @@ function _onMenuStateChanged(menu, isOpen) {
function _getAppStableSequence(app) {
return app.get_windows().reduce(function(prev, cur) {
- return Math.min(prev, cur.get_stable_sequence());
+ let seq = cur.get_stable_sequence();
+ return prev ? Math.min(prev, seq) : seq;
}, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]