mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 06:11:21 +01:00
The mouse code in config.rs called `crate::bar::exec_powershell` and `komorebi_client::send_batch` directly, which ties config.rs to the Windows shell. Two new hooks, `exec_shell_command(&str)` and `send_komorebi_batch(Vec<SocketMessage>)`, carry them: Windows os.rs calls exactly `crate::bar::exec_powershell` and `komorebi_client::send_batch`; macOS os.rs forwards send_batch the same way and answers exec_shell_command with an Unsupported error (the macOS bar has no shell session, and its mouse block was commented out), which nothing calls yet. Windows behaviour is unchanged (same calls); config.rs of Windows now only depends on the platform seam. Verified: Windows clippy -D warnings --locked clean; macOS fake-CC check --locked 0 errors (files touched first). Not run: the bars.