! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
switch_window_key behaves strangely


Description posixbofh 2011-08-31 02:04:52 CEST
First off, thank you Olivier for adding in switch_window_key and clientSwitchWindow().  I think more WM's need to think about switching windows within an application, especially as users spawn an unthinkable number of windows (guilty as charged when it comes to Terminal).

However, switch_window_key's behavior is really odd at this point.  Firstly, it only cycles forward.  Meaning, if you invoke it once (<Super>+<Tab> by default), release <Super>, then invoke it again, it will only select the next forward window.  It will not cycle back to the last window a-la <Alt>+<Tab>.

Also, the name of the command is awfully close to the cycling of entire applications and application windows which is cycle_windows_key.  So I'm not sure of the implications here when it comes to the eventual implementation of a more cycle-like behavior.  Perhaps switch_window_key should become cycle_subwindow_key?  Perhaps introduce new functions for these behaviors?

Either way, only being able to advance windows without any cycle memory or reverse capability is bothersome.  If I had more time and knowledge of your codebase I'd take a stab at a patch but alas I have neither.
Comment 1 Steve Dodier-Lazaro editbugs 2014-11-03 18:18:32 CET

I agree the behaviour should be made more consistently, ideally made to map with Switch Windows.

Suggested changes:
- Add a Reserve Switch Windows within App UI setting
- Implement memory for switching between windows of a same app

Alternative solution:
- Rename "Switch" to "Cycle through"...
Comment 2 Steve Dodier-Lazaro editbugs 2014-11-03 18:19:07 CET
(also this should be bumped to 4.10/trunk, and set to "CONFIRMED")
Comment 3 Git Bot editbugs 2020-05-29 11:47:20 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/62.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #7938

Reported by:
Reported on: 2011-08-31
Last modified on: 2020-05-29


Olivier Fourdan
CC List:
1 user



Additional information