mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 22:33:12 +01:00
KDE's should_act and should_act_individual become thin wrappers over komorebi_config::rules (RuleQuirks::UNIX: a `.exe` in a rule id is ignored, as before); their signatures and the should_act_window wrappers are unchanged, so no call site moves. The 12 pure matching tests of komorebi-for-kde/komorebi/tests/rule_matching.rs move to crates/komorebi-config/tests/rule_matching.rs with their assertions untouched (they call same-signature local wrappers over the shared function); the manage-rule rescue test, which needs the fake backend, stays in the KDE file. No behaviour change: the function bodies were identical (docs/dev/ rule-matching.md). Verified: cargo test -p komorebi-config --test rule_matching (12 passed); KDE cargo test -p komorebi-linux --lib (292 passed) and --test rule_matching (1 passed), command_sweep, rules; cargo check --all-targets clean. KDE clippy -D warnings fails on 4 pre-existing lints in process_command.rs and kwin/mod.rs (not touched here). Not run: VM suites.