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:
@ -386,6 +386,18 @@ Overview.prototype = {
|
||||
this.show();
|
||||
},
|
||||
|
||||
/**
|
||||
* getWorkspacesForWindow:
|
||||
* @metaWindow: A #MetaWindow
|
||||
*
|
||||
* Returns the Workspaces object associated with the given window.
|
||||
* This method is not be accessible if the overview is not open
|
||||
* and will return %null.
|
||||
*/
|
||||
getWorkspacesForWindow: function(metaWindow) {
|
||||
return this._workspaces;
|
||||
},
|
||||
|
||||
/**
|
||||
* activateWindow:
|
||||
* @metaWindow: A #MetaWindow
|
||||
@ -401,31 +413,6 @@ Overview.prototype = {
|
||||
this.hide();
|
||||
},
|
||||
|
||||
/**
|
||||
* setHighlightWindow:
|
||||
* @metaWindow: A #MetaWindow
|
||||
*
|
||||
* Draw the user's attention to the given window @metaWindow.
|
||||
*/
|
||||
setHighlightWindow: function (metaWindow) {
|
||||
if (this._workspaces)
|
||||
this._workspaces.setHighlightWindow(metaWindow);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* setApplicationWindowSelection:
|
||||
* @appid: Application identifier string
|
||||
*
|
||||
* Enter a mode which shows only the windows owned by the
|
||||
* given application, and allow highlighting of a specific
|
||||
* window with setHighlightWindow().
|
||||
*/
|
||||
setApplicationWindowSelection: function (appid) {
|
||||
if (this._workspaces)
|
||||
this._workspaces.setApplicationWindowSelection(appid);
|
||||
},
|
||||
|
||||
//// Private methods ////
|
||||
|
||||
_showDone: function() {
|
||||
|
Reference in New Issue
Block a user