shell-app: Track all application windows

Filtering out "non-interesting" windows beforehand as we currently do
means that we may get properties that should be based on all windows,
like the last time the application was used, wrong.
Just track all windows and filter out non-interesting windows manually
in the one place we actually care about the difference.

https://bugzilla.gnome.org/show_bug.cgi?id=719824
This commit is contained in:
Florian Müllner
2013-12-04 17:26:01 +01:00
parent 1e6fff30a3
commit e19faff101
3 changed files with 9 additions and 13 deletions

View File

@ -1498,7 +1498,9 @@ const AppIconMenu = new Lang.Class({
_redisplay: function() {
this.removeAll();
let windows = this._source.app.get_windows();
let windows = this._source.app.get_windows().filter(function(w) {
return Shell.WindowTracker.is_window_interesting(w);
});
// Display the app windows menu items and the separator between windows
// of the current desktop and other windows.