From 68e9365ddacf7200c7208bfb60a98198a57c77ab Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Wed, 2 Oct 2024 08:59:38 -0700 Subject: [PATCH] fix(borders): send notif on ignored hwnd events --- komorebi/src/process_event.rs | 4 ++++ komorebi/src/window.rs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/komorebi/src/process_event.rs b/komorebi/src/process_event.rs index 33f28236..30a8a952 100644 --- a/komorebi/src/process_event.rs +++ b/komorebi/src/process_event.rs @@ -102,6 +102,10 @@ impl WindowManager { } if !transparency_override { + if rule_debug.matches_ignore_identifier.is_some() { + border_manager::send_notification(Option::from(event.hwnd())); + } + return Ok(()); } } diff --git a/komorebi/src/window.rs b/komorebi/src/window.rs index 1b9b56a1..912becb9 100644 --- a/komorebi/src/window.rs +++ b/komorebi/src/window.rs @@ -537,7 +537,7 @@ pub struct RuleDebug { pub class: Option, pub path: Option, pub matches_permaignore_class: Option, - pub matches_float_identifier: Option, + pub matches_ignore_identifier: Option, pub matches_managed_override: Option, pub matches_layered_whitelist: Option, pub matches_wsl2_gui: Option, @@ -575,7 +575,7 @@ fn window_is_eligible( &ignore_identifiers, ®ex_identifiers, ) { - debug.matches_float_identifier = Some(rule); + debug.matches_ignore_identifier = Some(rule); true } else { false