main: Remove isWindowActorDisplayedOnWorkspace

We now have a convenience method in mutter.

https://bugzilla.gnome.org/show_bug.cgi?id=691746
This commit is contained in:
Jasper St. Pierre
2013-01-14 12:38:02 -05:00
parent 12ac2e5534
commit f738c2be9d
3 changed files with 15 additions and 19 deletions

View File

@@ -1532,9 +1532,10 @@ const Workspace = new Lang.Class({
},
// Tests if @win belongs to this workspaces and monitor
_isMyWindow : function (win) {
return (this.metaWorkspace == null || Main.isWindowActorDisplayedOnWorkspace(win, this.metaWorkspace.index())) &&
(!win.get_meta_window() || win.get_meta_window().get_monitor() == this.monitorIndex);
_isMyWindow : function (actor) {
let win = actor.meta_window;
return (this.metaWorkspace == null || win.located_on_workspace(this.metaWorkspace)) &&
(!win.get_monitor() == this.monitorIndex);
},
// Tests if @win should be shown in the Overview