After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696699 - New 'switch windows' functionality is not working
New 'switch windows' functionality is not working
Status: RESOLVED DUPLICATE of bug 688455
Product: gsettings-desktop-schemas
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Gustavo Noronha (kov)
gsettings-desktop-schemas-maint
Depends on:
Blocks:
 
 
Reported: 2013-03-27 15:11 UTC by Gustavo Noronha (kov)
Modified: 2013-03-27 22:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove <Alt>Tab from the default list of bindings for switch-applications (1.21 KB, patch)
2013-03-27 22:08 UTC, Gustavo Noronha (kov)
rejected Details | Review

Description Gustavo Noronha (kov) 2013-03-27 15:11:35 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
Comment 1 Florian Müllner 2013-03-27 15:21:00 UTC
(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"]' ...
Comment 2 Gustavo Noronha (kov) 2013-03-27 22:02:04 UTC
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?
Comment 3 Gustavo Noronha (kov) 2013-03-27 22:08:47 UTC
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.
Comment 4 Florian Müllner 2013-03-27 22:13:09 UTC
(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 ***
Comment 5 Florian Müllner 2013-03-27 22:15:21 UTC
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.
Comment 6 Gustavo Noronha (kov) 2013-03-27 22:41:49 UTC
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.
Comment 7 Florian Müllner 2013-03-27 22:45:00 UTC
(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"]'
Comment 8 Gustavo Noronha (kov) 2013-03-27 22:53:08 UTC
Yep, I set them like that using dconf-editor and it's working nicely, thanks for this great feature!