GNOME Bugzilla – Bug 696699
New 'switch windows' functionality is not working
Last modified: 2013-03-27 22:53:08 UTC
I have alt-tab set as the key binding for switch windows, and super-tab for switch apps. When I hit super-tab I get the regular switch apps popup[0]. When I hit alt-tab I get the same popup - the only difference being it doesn't let me go to the next application by hitting tab again - I have to use the arrow keys. I don't see any error messages that I think can be related. However, I do get a bunch of messages like this one on shell startup: JS ERROR: !!! Exception was: Error: value is out of range for Argument 'interval' (type guint32) JS ERROR: !!! message = '"value is out of range for Argument 'interval' (type guint32)"' JS ERROR: !!! fileName = '"/usr/share/gnome-shell/js/ui/background.js"' JS ERROR: !!! lineNumber = '453' JS ERROR: !!! stack = '"()@/usr/share/gnome-shell/js/ui/background.js:453 wrapper()@/usr/share/gjs-1.0/lang.js:213 ()@/usr/share/gnome-shell/js/ui/background.js:381 wrapper()@/usr/share/gjs-1.0/lang.js:213 ([object GObject_Object],0)@/usr/share/gnome-shell/js/ui/background.js:429 ([object GObject_Object])@/usr/share/gjs-1.0/lang.js:112 ([object Object])@/usr/share/gnome-shell/js/ui/background.js:170 wrapper([object Object])@/usr/share/gjs-1.0/lang.js:213 ()@/usr/share/gnome-shell/js/ui/background.js:431 wrapper()@/usr/share/gjs-1.0/lang.js:213 ([object Object])@/usr/share/gnome-shell/js/ui/background.js:470 ()@/usr/share/gnome-shell/js/ui/background.js:203 "' It's repeated several times. I have gnome-shell 3.7.92 and gjs 1.35.8. I'm on Debian sid/experimental. [0]: it's missing the workspace separator but I gather it's expected from reading some bug reports discussion
(In reply to comment #0) > I have alt-tab set as the key binding for switch windows, and super-tab for > switch apps. When I hit super-tab I get the regular switch apps popup[0]. When > I hit alt-tab I get the same popup That sounds like "<Alt>Tab" is still used for 'switch-applications' - what's the output of "gsettings get org.gnome.desktop.wm.keybindings switch-applications"? My guess is on '["<Super>Tab","<Alt>Tab"]' ...
Right on! kov@melancia ~> gsettings get org.gnome.desktop.wm.keybindings switch-applications ['<Super>Tab', '<Alt>Tab'] Some kind of migration step failed to run or messed up, probably?
Created attachment 239992 [details] [review] Remove <Alt>Tab from the default list of bindings for switch-applications <Alt>Tab is now used for switch-windows by default, and having it in the list of keybindings for switch-applications interferes with it.
(In reply to comment #2) > Some kind of migration step failed to run or messed up, probably? No, that's actually the intended default ('<Super>Tab' because we are trying to establish <super> as system modifier, and '<Alt>Tab' because it's deep ingrained in muscle memory). The problem at hand is that the shortcut panel ignores secondary shortcuts completely, e.g. when you assign <Alt>Tab to a different action (switch-windows), we fail to detect it as a conflict. *** This bug has been marked as a duplicate of bug 688455 ***
Review of attachment 239992 [details] [review]: No. switch-windows does not have a default keybinding, and <Alt>Tab has been left as alternative to <super>Tab on purpose, see https://git.gnome.org/browse/gsettings-desktop-schemas/commit?id=ad1bae87dd2da352d.
OK, makes sense, but shouldn't Alt-Tab then work just like Super-Tab? Or is the conflict causing the problem? The problem being you can't keep pressing Alt-Tab to go to the third item, and so on.
(In reply to comment #6) > OK, makes sense, but shouldn't Alt-Tab then work just like Super-Tab? Or is the > conflict causing the problem? Yes and yes - if you remove the shortcut for switch-windows (or set it to something other than <super>/<alt>Tab), the app switcher should work for both shortcuts. Also, to get the intended configuration, you should be able to do gsettings set org.gnome.desktop.wm.keybindings switch-applications '["<Super>Tab"]' gsettings set org.gnome.desktop.wm.keybindings switch-windows '["<Alt>Tab"]'
Yep, I set them like that using dconf-editor and it's working nicely, thanks for this great feature!