feat: add support for multiple desktops#151
Conversation
Include windows cloaked by the shell, but exclude "invisible" windows. This seems to result in pretty much the expected list of windows across all desktops instead of just the current one.
Windows already has a setting for the Alt-tab switcher to include virtual desktops, so we can just use that instead of a config.
Add two configuration items.[switch-windows]
# Only switch windows in the current desktop
only_current_desktop = yes
[switch-apps]
# Only switch apps in the current desktop, yes/no/auto
# If auto, follow the system setting (Settings > System > Multitasking -> Virtual Desktops)
only_current_desktop = autopub struct Config {
...
pub switch_windows_only_current_desktop: bool,
...
pub switch_apps_only_current_desktop: Option<bool<,
}Why add
|
There are a handful of programs that appear as "invisible", which Windows does not appear to include in its own task switcher: In particular, I will work on adding the new configs and push my changes once I have it working. |
|
It seems that Why not merge it into the Since we have window-switcher/src/utils/window.rs Lines 211 to 212 in eb6341a |
Did a bit of cleanup / refactoring as well.
|
Good job, thanks! |
Closes #99
Include windows cloaked by the shell, but exclude "invisible" windows. This seems to result in pretty much the expected list of windows across all desktops instead of just the current one.
We read the Windows registry to decide whether to filter windows on other desktops or not, based on the corresponding multitasking setting.