[gnome-shell/gnome-3-8] altTab: Always activate MRU window when activating an app

commit f374ecfc75102510b80401a74f22d75e2a8cf804
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed May 15 08:37:12 2013 +0200

    altTab: Always activate MRU window when activating an app
    Commit 2499f2ed80 went back to using shell_app_activate() for
    selecting an app, which favors windows on the current workspace;
    this is the behavior we want for instance when activating a
    launcher, but it's wrong for the alt-tab list - explicitly
    request the first (e.g. MRU) window in that case.

 js/ui/altTab.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 435e66f..34d83e4 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -234,7 +234,7 @@ const AppSwitcherPopup = new Lang.Class({
     _finish : function(timestamp) {
         let appIcon = this._items[this._selectedIndex];
         if (this._currentWindow < 0)
-            appIcon.app.activate_full(-1, timestamp);
+            appIcon.app.activate_window(appIcon.cachedWindows[0], timestamp);
             Main.activateWindow(appIcon.cachedWindows[this._currentWindow], timestamp);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]