[gnome-shell-extensions] alternateTab: Remove _initialSelection injection



commit 687ea92e829464ca67ee5e99abc3aeaf0138e5b6
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Sep 27 12:07:28 2014 +0200

    alternateTab: Remove _initialSelection injection
    
    Since shell commit 2b1077aaa169, the implementation in the
    SwitcherPopup base class already works as expected.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737457

 extensions/alternate-tab/extension.js |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/extensions/alternate-tab/extension.js b/extensions/alternate-tab/extension.js
index 0a11970..3167b10 100644
--- a/extensions/alternate-tab/extension.js
+++ b/extensions/alternate-tab/extension.js
@@ -18,17 +18,6 @@ function setKeybinding(name, func) {
 }
 
 function enable() {
-    injections['_initialSelection'] = AltTab.WindowSwitcherPopup.prototype._initialSelection;
-    AltTab.WindowSwitcherPopup.prototype._initialSelection = function(backward, binding) {
-        if (binding == 'switch-windows-backward' ||
-            binding == 'switch-applications-backward' ||
-            binding == 'switch-group-backward' || backward)
-            this._select(this._items.length - 1);
-        else if (this._items.length == 1)
-            this._select(0);
-        else
-            this._select(1);
-    };
     injections['_keyPressHandler'] = AltTab.WindowSwitcherPopup.prototype._keyPressHandler;
     AltTab.WindowSwitcherPopup.prototype._keyPressHandler = function(keysym, action) {
         if (action == Meta.KeyBindingAction.SWITCH_WINDOWS ||


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