diff --git a/js/ui/overview.js b/js/ui/overview.js index 1747da276..4f50e6fe8 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -399,16 +399,16 @@ Overview.prototype = { /** - * beginApplicationWindowSelection: + * setApplicationWindowSelection: * @appid: Application identifier string * - * Enter a mode which shows only the widnows owned by the + * Enter a mode which shows only the windows owned by the * given application, and allow highlighting of a specific * window with setHighlightWindow(). */ - beginApplicationWindowSelection: function (appid) { + setApplicationWindowSelection: function (appid) { if (this._workspaces) - this._workspaces.beginApplicationWindowSelection(appid); + this._workspaces.setApplicationWindowSelection(appid); }, //// Private methods //// diff --git a/js/ui/workspaces.js b/js/ui/workspaces.js index a7707472a..5bd33a929 100644 --- a/js/ui/workspaces.js +++ b/js/ui/workspaces.js @@ -1081,8 +1081,6 @@ Workspaces.prototype = { _init : function(width, height, x, y) { this.actor = new Clutter.Group(); - this._appIdFilter = null; - this._width = width; this._height = height; this._x = x; @@ -1158,7 +1156,8 @@ Workspaces.prototype = { } }, - beginApplicationWindowSelection: function (appId) { + // See comments in overview.js + setApplicationWindowSelection: function (appId) { let appSys = Shell.AppMonitor.get_default(); let showOnlyWindows; @@ -1171,7 +1170,6 @@ Workspaces.prototype = { } else { showOnlyWindows = null; } - this._appIdFilter = appId; for (let i = 0; i < this._workspaces.length; i++) { this._workspaces[i].setLightboxMode(showOnlyWindows != null); this._workspaces[i].setShowOnlyWindows(showOnlyWindows);