From 5d4d2768cc7a0186b0052992f642c6bdf3882438 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 21:20:01 -0700 Subject: [PATCH] refactor(windows): converge FocusFollowsMouseImplementation to the shared text Windows takes the text that KDE and the crate will share: the Windows description is unchanged, KDE's extra sentence about KWin is added only under cfg_attr(target_os = "linux"), so each platform's schema.json keeps its bytes. No code change. Verified: Windows clippy --workspace --locked --all-targets -D warnings clean. --- komorebi/src/core/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/komorebi/src/core/mod.rs b/komorebi/src/core/mod.rs index 8ffa299a..8713850e 100644 --- a/komorebi/src/core/mod.rs +++ b/komorebi/src/core/mod.rs @@ -350,6 +350,13 @@ pub enum BorderImplementation { #[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize, Display, EnumString, ValueEnum)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] /// Focus follows mouse implementation +// KDE's compositor does the focusing: its description says so (it is part of the checked-in schema) +#[cfg_attr(target_os = "linux", doc = "")] +#[cfg_attr( + target_os = "linux", + doc = " The two exist on Windows. On KDE the compositor does it, so both ask KWin for its" +)] +#[cfg_attr(target_os = "linux", doc = " \"focus follows mouse\" focus policy.")] pub enum FocusFollowsMouseImplementation { /// Custom FFM implementation (slightly more CPU-intensive) Komorebi,