Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - key modifier to alter "show windows from all workspaces"? #22

Open
bowars opened this issue Sep 22, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@bowars
Copy link

bowars commented Sep 22, 2024

Another idea - how about being able to hold a particular modifier (shift or control) to switch off (or on) "include windows from all workspaces" on-the-fly?

@klangman
Copy link
Owner

Good idea.. Let me think about it for a bit.. Are you thinking that hitting the modifier key would show windows from other workspaces but only while holding the key, or more like a toggle?

@bowars
Copy link
Author

bowars commented Sep 24, 2024

The former - though personally I would like the opposite (i.e. that if I hold the modifier key, it only shows windows from the current workspace).

@klangman klangman added the enhancement New feature or request label Sep 26, 2024
@klangman
Copy link
Owner

klangman commented Dec 1, 2024

OK.. So here is the problem with this idea for which I have not thought of any clean way to avoid.

There already exists the options to setup mouse click actions which occur when clicking on a window list button while holding the Ctrl or Shift modifier keys (i.e. Shift-Click to open a new application window). Typically people will hit the modifier and then move the mouse to the window-list to click on a button. If the modifier also had action that you are proposing, then the contents of the window-list would change and it would be a bit awkward. Particularly if it was implemented the why I was thinking where the enter event (when the mouse starts hovering the window-list) is used to trigger the change in the visible set of buttons. This would mean that when the user presses Shift and moved the pointer to the window-list, the contents of the list would change a moment before they click to open a new window.

This is where I am stuck right now. I was thinking of using the "Alt" modifier but for some reason there is no "Alt" defined in Clutter.ModifierType which is why the exiting options to set Ctrl/Shift mouse click actions does not include "Alt".

If I can't think of a solution, then it might not be something I can add.

@bowars
Copy link
Author

bowars commented Dec 2, 2024

According to a quick Google, Alt should be Clutter.ModifierType.MOD1_MASK. Otherwise, perhaps ctrl+shift could work here? Or just a binary option to have this behaviour or the other!

@klangman
Copy link
Owner

klangman commented Dec 2, 2024

Good googleing skills. Did a quick google and didn't find anything, but you are right, MOD1_MASK is working for the Alt key. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants