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.
This commit is contained in:
LGUG2Z committed 2026-10-31 01:37:53 -07:00
1 parent 5d4d2768cc
commit c41ffc6362
1 file changed
+7 -3
+7 -3
View File
@@ -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,