[gnome-shell] AppSwitcherPopup: Activate only the selected window if any



commit 2499f2ed8098110845a041f7783e51e6740ad497
Author: Rui Matos <tiagomatos gmail com>
Date:   Sun Apr 7 16:42:42 2013 +0200

    AppSwitcherPopup: Activate only the selected window if any
    
    If there's an explicitly selected window thumbnail we should bring up
    only that particular window instead of all the application's windows.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697480

 js/ui/altTab.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 4b62f5c..435e66f 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -233,8 +233,10 @@ const AppSwitcherPopup = new Lang.Class({
 
     _finish : function(timestamp) {
         let appIcon = this._items[this._selectedIndex];
-        let window = this._currentWindow > 0 ? this._currentWindow : 0;
-        appIcon.app.activate_window(appIcon.cachedWindows[window], timestamp);
+        if (this._currentWindow < 0)
+            appIcon.app.activate_full(-1, timestamp);
+        else
+            Main.activateWindow(appIcon.cachedWindows[this._currentWindow], timestamp);
 
         this.parent();
     },


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