[gnome-shell-extensions/wip/window-list: 5/14] Filter out non-"interesting" windows



commit 9424e3def9522f81408d37af83a8af914a27790d
Author: Florian MÃllner <fmuellner gnome org>
Date:   Fri Jan 18 17:29:09 2013 +0100

    Filter out non-"interesting" windows

 extensions/window-list/extension.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 22b69a0..751a633 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -1,5 +1,6 @@
 const Clutter = imports.gi.Clutter;
 const Meta = imports.gi.Meta;
+const Shell = imports.gi.Shell;
 const St = imports.gi.St;
 
 const Lang = imports.lang;
@@ -215,6 +216,9 @@ const WindowList = new Lang.Class({
     },
 
     _onWindowAdded: function(ws, win) {
+        if (!Shell.WindowTracker.get_default().is_window_interesting(win))
+            return;
+
         let button = new WindowButton(win);
         this._windowList.add(button.actor, { y_fill: true });
     },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]