From c41ffc636273743bc2a97f0e0638e58ff6131204 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 21:20:01 -0700 Subject: [PATCH] refactor(kde): converge FocusFollowsMouseImplementation to the shared text The KWin sentence of the description moves into cfg_attr(target_os = "linux", doc = ...) lines so the same text can be shared with Windows. Description unchanged. Verified: komorebic static-config-schema in komorebi-for-kde is byte-identical to the checked-in schema.json; cargo check passed during the run. --- komorebi-for-kde/komorebi/src/core/mod.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/komorebi-for-kde/komorebi/src/core/mod.rs b/komorebi-for-kde/komorebi/src/core/mod.rs index 09366806..2b11cb71 100644 --- a/komorebi-for-kde/komorebi/src/core/mod.rs +++ b/komorebi-for-kde/komorebi/src/core/mod.rs @@ -169,9 +169,13 @@ impl Placement { #[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize, Display, EnumString, ValueEnum)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] /// Focus follows mouse implementation -/// -/// The two exist on Windows. On KDE the compositor does it, so both ask KWin for its -/// "focus follows mouse" focus policy. +// 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,