From 5c129ab59d2e76e546a507b5f93588c9270f6f7e Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 21:30:38 -0700 Subject: [PATCH] refactor(mac): carry DebugWindow as i64 DebugWindow(i64) as in the unified SocketMessage (D15); the comparison with the accessibility window id widens the u32 side, so behaviour for valid ids is unchanged (a negative or oversized id now parses and matches no window). Verified: fast-check macOS (fake CC) cargo check --workspace --all-targets: PASS. --- komorebi-for-mac/komorebi/src/core/mod.rs | 2 +- komorebi-for-mac/komorebi/src/process_command.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/komorebi-for-mac/komorebi/src/core/mod.rs b/komorebi-for-mac/komorebi/src/core/mod.rs index 8aa5a961..661c557d 100644 --- a/komorebi-for-mac/komorebi/src/core/mod.rs +++ b/komorebi-for-mac/komorebi/src/core/mod.rs @@ -379,7 +379,7 @@ pub enum SocketMessage { SocketSchema, StaticConfigSchema, GenerateStaticConfig, - DebugWindow(u32), + DebugWindow(i64), } impl SocketMessage { diff --git a/komorebi-for-mac/komorebi/src/process_command.rs b/komorebi-for-mac/komorebi/src/process_command.rs index 404b5955..5d3605c9 100644 --- a/komorebi-for-mac/komorebi/src/process_command.rs +++ b/komorebi-for-mac/komorebi/src/process_command.rs @@ -1722,7 +1722,7 @@ impl WindowManager { if let Some(elements) = application.window_elements() { for element in elements { if let Ok(wid) = AccessibilityApi::window_id(&element) - && wid == window_id + && i64::from(wid) == window_id && let Ok(window) = Window::new(element, application.clone()) { let mut rule_debug = RuleDebug::default();