altTab: Fix WindowSwitcherPopup

The "backwards" parameter needs to be dropped here as well.
This commit is contained in:
Jasper St. Pierre 2014-08-18 13:31:31 -04:00
parent 20fc9735fa
commit 93c5e6d97e
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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');
},