[AppIcon] Leave overview when launching apps

There was an unintentional regression at some point where we ceased
leaving the overview when launching applications.  Fix this.

https://bugzilla.gnome.org/show_bug.cgi?id=608062
This commit is contained in:
Colin Walters 2010-01-25 14:13:21 -05:00
parent be2801d1fa
commit 0a566f70b6

View File

@ -475,11 +475,13 @@ AppWellIcon.prototype = {
if (!running) {
this.app.launch();
Main.overview.hide();
} else {
let modifiers = Shell.get_event_state(event);
if (modifiers & Clutter.ModifierType.CONTROL_MASK) {
this.app.launch();
Main.overview.hide();
} else {
this.activateMostRecentWindow();
}