mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-29 03:42:46 +01:00
refactor(core,kde,windows,mac): remove CommandHost::POINTER_PICKS_THE_MONITOR_FOR_ALL
All three daemons now let the pointer pick the monitor for every shared command that has the preamble, so the const has no reason left. The shared functions always call focus_the_monitor_under_the_pointer; the three CommandHost impls lose the const (Windows had it true already, so nothing changes there). The core test of the switch becomes the_pointer_picks_the_monitor_..._on_all_platforms. known-issues item 1 is marked resolved and core-model.md section 18 text is updated. No behaviour change in this revision beyond the previous two. Verified: komorebi-core tests all pass (command tests 18); KDE cargo test -p komorebi-linux 670 passed, 0 failed; fake-CC clippy for the four macOS packages passes; cargo clippy -p komorebi-windows --all-targets -D warnings passes. Not verified: Windows tests or e2e (cannot run on Linux).
This commit is contained in:
1 parent
24d083bce8
commit
3e5475e7ef
7 files changed
+19
-124
No files matched your search
@@ -1390,8 +1390,8 @@ monitors (`CycleMoveContainerToWorkspace`, `CycleSendContainerToWorkspace`, `Cyc
|
||||
`CycleMoveContainerToMonitor`, `CycleSendContainerToMonitor`, `FocusMonitorWorkspaceNumber`,
|
||||
`MoveContainerToMonitorWorkspaceNumber`, `SendContainerToMonitorWorkspaceNumber`) and the lock and
|
||||
unlock of a container by index. The one platform difference found, that Windows lets the pointer pick the
|
||||
monitor first for the empty, close and last-workspace commands (a probable omission on KDE and macOS,
|
||||
section 18), is the const `CommandHost::POINTER_PICKS_THE_MONITOR_FOR_ALL`, true only for Windows.
|
||||
monitor first for the empty, close, last-workspace and workspace-number commands (an omission on KDE and macOS,
|
||||
section 18), is gone: all three do it now (wip-u-ptr), so the const that held the difference was removed.
|
||||
|
||||
**What stays, and why** (identical across the three unless noted; each needs a `WindowManager` method
|
||||
or field, so moving them means moving `WindowManager`, the blockers of section 18):
|
||||
|
||||
Reference in new issue
Block a user