mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-20 07:31:39 +01:00
refactor(protocol): use FocusFollowsMouseImplementation from komorebi-protocol in KDE
Delete KDE's copy (same text after the converge revision) and re-export the crate's. Verified: cargo check --workspace --all-targets in komorebi-for-kde: 0 errors, no warnings; komorebic static-config-schema is byte-identical to the checked-in schema.json (the KWin sentence now comes from cfg_attr in the crate).
This commit is contained in:
1 parent
9d8d36ac8b
commit
b769f166d3
1 file changed
+1
-17
@@ -55,6 +55,7 @@ pub mod asc;
|
||||
pub mod config_generation;
|
||||
pub use komorebi_protocol::pathext;
|
||||
pub use komorebi_protocol::types::ApplicationIdentifier;
|
||||
pub use komorebi_protocol::types::FocusFollowsMouseImplementation;
|
||||
pub use komorebi_protocol::types::MonocleFocusBehaviour;
|
||||
pub use komorebi_protocol::types::MoveBehaviour;
|
||||
pub use komorebi_protocol::types::OperationBehaviour;
|
||||
@@ -166,23 +167,6 @@ impl Placement {
|
||||
}
|
||||
}
|
||||
|
||||
#[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,
|
||||
/// Native (legacy) Windows FFM implementation
|
||||
Windows,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
|
||||
Reference in new issue
Block a user