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:
Dan Winship
2010-02-17 14:05:06 -05:00
parent 77fe0db623
commit cec62a7ca5
5 changed files with 12 additions and 37 deletions

View File

@ -1419,7 +1419,7 @@ Workspace.prototype = {
},
_onCloneSelected : function (clone, time) {
Main.overview.activateWindow(clone.metaWindow, time);
Main.activateWindow(clone.metaWindow, time);
},
_removeSelf : function(actor, event) {