mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-14 04:43:42 +01:00
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:
1 parent
573f48ad78
commit
5c129ab59d
2 files changed
+2
-2
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user