window-list: Filter skip-taskbar windows

Applications now track all their windows, not just the ones that are
expected to show up in the window list. So to restore the previous
behavior, we now have to filter out windows with the skip-taskbar
hint ourselves.

https://bugzilla.gnome.org/show_bug.cgi?id=724134
This commit is contained in:
Florian Müllner
2014-02-07 22:53:17 +01:00
parent 9c6c00f8a3
commit c9a4d15f05
+2 -2
View File
@@ -315,7 +315,7 @@ const AppContextMenu = new Lang.Class({
_getWindowList: function() {
let workspace = global.screen.get_active_workspace();
return this._app.get_windows().filter(function(win) {
return win.located_on_workspace(workspace);
return !win.skip_taskbar && win.located_on_workspace(workspace);
});
},
@@ -436,7 +436,7 @@ const AppButton = new Lang.Class({
_getWindowList: function() {
let workspace = global.screen.get_active_workspace();
return this.app.get_windows().filter(function(win) {
return win.located_on_workspace(workspace);
return !win.skip_taskbar && win.located_on_workspace(workspace);
});
},