From 687ea92e829464ca67ee5e99abc3aeaf0138e5b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 27 Sep 2014 12:07:28 +0200 Subject: [PATCH] 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 file changed, 11 deletions(-) diff --git a/extensions/alternate-tab/extension.js b/extensions/alternate-tab/extension.js index 0a119700..3167b102 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 ||