From 0cdae2dae04a62a760dc7fa06e1de891338b89a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 16 Sep 2016 15:18:13 +0200 Subject: [PATCH] alternateTab: Don't take over 'switch-group' shortcuts The original extension author really hated the app switcher with a passion and took over all its uses, but there's really no reason to replace the 'switch-group' shortcuts - not least because the window switcher doesn't implement switching between windows of a single application. So just keep the extension to making the 'switch-application' shortcuts behave as 'switch-windows' for the "classic" session (and all users who rather install an extension than change shortcut settings). https://bugzilla.gnome.org/show_bug.cgi?id=771531 --- extensions/alternate-tab/extension.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/extensions/alternate-tab/extension.js b/extensions/alternate-tab/extension.js index 7a5ee172..88e36390 100644 --- a/extensions/alternate-tab/extension.js +++ b/extensions/alternate-tab/extension.js @@ -23,11 +23,9 @@ function enable() { AltTab.WindowSwitcherPopup.prototype._keyPressHandler = function(keysym, action) { switch(action) { case Meta.KeyBindingAction.SWITCH_APPLICATIONS: - case Meta.KeyBindingAction.SWITCH_GROUP: action = Meta.KeyBindingAction.SWITCH_WINDOWS; break; case Meta.KeyBindingAction.SWITCH_APPLICATIONS_BACKWARD: - case Meta.KeyBindingAction.SWITCH_GROUP_BACKWARD: action = Meta.KeyBindingAction.SWITCH_WINDOWS_BACKWARD; break; } @@ -46,18 +44,14 @@ function enable() { }; setKeybinding('switch-applications', Lang.bind(Main.wm, Main.wm._forcedWindowSwitcher)); - setKeybinding('switch-group', Lang.bind(Main.wm, Main.wm._forcedWindowSwitcher)); setKeybinding('switch-applications-backward', Lang.bind(Main.wm, Main.wm._forcedWindowSwitcher)); - setKeybinding('switch-group-backward', Lang.bind(Main.wm, Main.wm._forcedWindowSwitcher)); } function disable() { var prop; setKeybinding('switch-applications', Lang.bind(Main.wm, Main.wm._startSwitcher)); - setKeybinding('switch-group', Lang.bind(Main.wm, Main.wm._startSwitcher)); setKeybinding('switch-applications-backward', Lang.bind(Main.wm, Main.wm._startSwitcher)); - setKeybinding('switch-group-backward', Lang.bind(Main.wm, Main.wm._startSwitcher)); for (prop in injections) AltTab.WindowSwitcherPopup.prototype[prop] = injections[prop];