From 93c5e6d97e3fcaeb75e739a5bd741b8133a96ccb Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 18 Aug 2014 13:31:31 -0400 Subject: [PATCH] altTab: Fix WindowSwitcherPopup The "backwards" parameter needs to be dropped here as well. --- js/ui/altTab.js | 4 ++-- js/ui/switcherPopup.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index c734deaca..efbb23827 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -400,9 +400,9 @@ const WindowSwitcherPopup = new Lang.Class({ this._select(1); }, - _keyPressHandler: function(keysym, backwards, action) { + _keyPressHandler: function(keysym, action) { if (action == Meta.KeyBindingAction.SWITCH_WINDOWS) { - this._select(backwards ? this._previous() : this._next()); + this._select(this._next()); } else if (action == Meta.KeyBindingAction.SWITCH_WINDOWS_BACKWARD) { this._select(this._previous()); } else { diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 2d4ec2ab3..ccb774de3 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -178,7 +178,7 @@ const SwitcherPopup = new Lang.Class({ return mod(this._selectedIndex - 1, this._items.length); }, - _keyPressHandler: function(keysym, backwards, action) { + _keyPressHandler: function(keysym, action) { throw new Error('Not implemented'); },