Don't proxy methods through overview; add a getWorkspacesForWindow()

Duplicating the methods was unnecessary.  Also, we want a getWorkspacesForWindow()
method as preparation for multi-monitor work.

https://bugzilla.gnome.org/show_bug.cgi?id=594699
This commit is contained in:
Colin Walters
2009-09-11 12:47:53 -04:00
parent 2812c21322
commit 33f9895d71
3 changed files with 37 additions and 29 deletions

View File

@ -848,8 +848,8 @@ RunningWellItem.prototype = {
if (this._menu == null) {
this._menu = new WellMenu(this);
this._menu.connect('highlight-window', Lang.bind(this, function (menu, window) {
Main.overview.setHighlightWindow(window);
this._menu.connect('highlight-window', Lang.bind(this, function (menu, metaWindow) {
Main.overview.getWorkspacesForWindow(metaWindow).setHighlightWindow(metaWindow);
}));
this._menu.connect('popup', Lang.bind(this, function (menu, isPoppedUp) {
let id;
@ -858,7 +858,8 @@ RunningWellItem.prototype = {
id = this.appInfo.get_id();
else
id = null;
Main.overview.setApplicationWindowSelection(id);
Main.overview.getWorkspacesForWindow(null).setApplicationWindowSelection(id);
}));
}