Main.activateWindow: always exit the overview if it's currently open
This way, clicking a message tray icon while the overview is open will close the overview when activating its window. Remove some other overview-related activation code which is now redundant. Also, remove calls to "global.get_current_time()" when calling Main.activateWindow, since it's unnecessary (activateWindow will call it itself if you don't pass in that arg). https://bugzilla.gnome.org/show_bug.cgi?id=609765
This commit is contained in:
@ -564,20 +564,6 @@ Overview.prototype = {
|
||||
return this._workspaces;
|
||||
},
|
||||
|
||||
/**
|
||||
* activateWindow:
|
||||
* @metaWindow: A #MetaWindow
|
||||
* @time: Event timestamp integer
|
||||
*
|
||||
* Make the given MetaWindow be the focus window, switching
|
||||
* to the workspace it's on if necessary. This function
|
||||
* should only be used when the Overview is currently active;
|
||||
* outside of that, use the relevant methods on MetaDisplay.
|
||||
*/
|
||||
activateWindow: function (metaWindow, time) {
|
||||
this._workspaces.activateWindowFromOverview(metaWindow, time);
|
||||
},
|
||||
|
||||
//// Private methods ////
|
||||
|
||||
_showDone: function() {
|
||||
|
Reference in New Issue
Block a user