chrome: try find fullscreen windows only on current workspace

https://bugzilla.gnome.org/show_bug.cgi?id=641677
This commit is contained in:
Maxim Ermilov
2011-02-08 04:05:30 +03:00
parent 95e6eae23b
commit 2792ad1cf4
3 changed files with 14 additions and 4 deletions

View File

@ -552,7 +552,7 @@ Workspace.prototype = {
this.actor.height = global.screen_height;
this.scale = 1.0;
let windows = global.get_window_actors().filter(this._isMyWindow, this);
let windows = Main.getWindowActorsForWorkspace(this.metaWorkspace.index());
// Create clones for remaining windows that should be
// visible in the Overview
@ -1308,8 +1308,7 @@ Workspace.prototype = {
// Tests if @win belongs to this workspaces
_isMyWindow : function (win) {
return win.get_workspace() == this.metaWorkspace.index() ||
(win.get_meta_window() && win.get_meta_window().is_on_all_workspaces());
return Main.isWindowActorDisplayedOnWorkspace(win, this.metaWorkspace.index());
},
// Tests if @win should be shown in the Overview