mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 13:51:19 +01:00
komorebi_core::command gets focus_workspace_number (show a workspace unless it is in front) and focus_workspace_numbers (show it on every other monitor, then on the focused one), both with the pointer preamble when the host's POINTER_PICKS_THE_MONITOR_FOR_ALL says so, over a new CommandHost method show_workspace_on (focus the workspace of a monitor and load it, which the daemons already did inline). The three daemons' arms call them (Windows keeps its focus_workspace_numbers method as a wrapper) and implement show_workspace_on. The const is unchanged: true for Windows, false for KDE and macOS, so nothing changes yet; the next revisions flip it. Tests: the Windows-switch test becomes a test of all five commands with the switch off and on, and focus_workspace_number(s) are tested on the stub host (commands.py: focus-workspace, focus-workspaces). Verified: cargo test -p komorebi-core --features schemars --test commands: 18 passed; KDE cargo test -p komorebi-linux (lite env): 666 passed, 0 failed; fake-CC cargo clippy -D warnings on the macOS packages: PASS; Windows cargo clippy -p komorebi-windows --locked --all-targets -D warnings: PASS. Not run: Windows tests, VM and Mac.