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.
This commit is contained in:
LGUG2Z committed 2026-10-31 01:37:53 -07:00
1 parent 573f48ad78
commit 5c129ab59d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -379,7 +379,7 @@ pub enum SocketMessage {
SocketSchema,
StaticConfigSchema,
GenerateStaticConfig,
DebugWindow(u32),
DebugWindow(i64),
}
impl SocketMessage {
@@ -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();