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 771531 - Alt-` (backtick) should switch windows within a current application group.
Alt-` (backtick) should switch windows within a current application group.
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2016-09-16 12:13 UTC by Shaleen Jain
Modified: 2016-11-17 09:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
alternateTab: Don't take over 'switch-group' shortcuts (2.54 KB, patch)
2016-09-16 16:31 UTC, Florian Müllner
committed Details | Review

Description Shaleen Jain 2016-09-16 12:13:32 UTC
Pressing Alt-` has the same effect as that of Alt-Tab when the Alternatetab extension is enabled.

The desired functionality should be Alt-` switchs windows only in an application group and Alt-Tab switches between all windows and does not group by application.
 
The stock alt-` works as expected, i.e. switches only within an application group.
Comment 1 Florian Müllner 2016-09-16 16:31:24 UTC
Created attachment 335721 [details] [review]
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).
Comment 2 Rui Matos 2016-09-19 11:41:48 UTC
Review of attachment 335721 [details] [review]:

looks fine *sigh*
Comment 3 Steven Roose 2016-11-14 11:14:13 UTC
Can this please be solved? This is clearly a bug: the description of the plugin says that it "changes ALT-TAB behavior", while it currently also changes alt-` behavior.
Comment 4 Florian Müllner 2016-11-14 11:30:42 UTC
Attachment 335721 [details] pushed as 0cdae2d - alternateTab: Don't take over 'switch-group' shortcuts
Comment 5 Steven Roose 2016-11-14 11:32:39 UTC
I get "Bad object id: 0cdae2d"..

Should this be in the repo already?
Comment 6 Florian Müllner 2016-11-14 11:47:36 UTC
Yes, the bugzilla produce <-> module name mismatch confuses the commit linkification. https://git.gnome.org/browse/gnome-shell-extensions/commit/?id=0cdae2d is the correct link.


(In reply to Steven Roose from comment #3)
> the description of the plugin says that it "changes ALT-TAB behavior"

Well, arguably the description is wrong. By default it also changes SUPER-TAB behavior (which is a synonym of alt-tab), and if you use the shortcuts settings to use alt-tab for something else (say: hide all windows), then the extension won't touch it. The correct description would be something like "Makes some shortcuts behave as 'switch-windows' to get the expected default settings in classic mode". That is, outside of classic mode, you would be better of changing the underlying settings directly instead of relying on an extension to do it for you:

  gsettings set org.gnome.desktop.wm.keybindings switch-applications '[]'
  gsettings set org.gnome.desktop.wm.keybindings switch-windows '["<Alt>Tab"]'
Comment 7 Shaleen Jain 2016-11-17 01:57:44 UTC
If you'd rather want people to achieve that functionality by changing the gsettings or from the keyboard settings in gnome-control-center which are much more descriptive and reliable why not just remove the extension or atleast not install it by default?
Comment 8 Florian Müllner 2016-11-17 09:22:11 UTC
(In reply to Shaleen Jain from comment #7)
> why not just remove the extension or atleast not install it by default?

I cannot comment on the "installed by default" part, as that's up to distributions. The extension still exists because we want the default Alt+Tab behavior to be different in the normal GNOME session than in the GNOME Classic session. GSettings currently only allows for a single default value, so we need a different way to implement the different defaults - thus the extension. Allison has promised for a while that GSettings will allow for different defaults based on the session eventually, at which point we'll be able to retire the extension.