refactor(windows): carry DebugWindow as i64

The unified SocketMessage has DebugWindow(i64) (D15): i64 accepts every value any tree accepts (Windows isize, KDE and macOS u32) and writes the same digits. The Windows handler and komorebi-gui convert with as (isize and i64 are the same width on the supported 64-bit targets), so Windows behaviour is unchanged.

Verified: Windows clippy --workspace --locked --all-targets -D warnings clean.
This commit is contained in:
LGUG2Z committed 2026-10-31 01:37:53 -07:00
1 parent b769f166d3
commit 302e3830e9
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -292,7 +292,7 @@ impl eframe::App for KomorebiGui {
{
let debug_rule: RuleDebug = serde_json::from_str(
&komorebi_client::send_query(
&SocketMessage::DebugWindow(self.debug_hwnd),
&SocketMessage::DebugWindow(self.debug_hwnd as i64),
)
.unwrap(),
)
+1 -1
View File
@@ -283,7 +283,7 @@ pub enum SocketMessage {
SocketSchema,
StaticConfigSchema,
GenerateStaticConfig,
DebugWindow(isize),
DebugWindow(i64),
// low level commands
ApplyState(State),
}
+1 -1
View File
@@ -2214,7 +2214,7 @@ if (!(Get-Process komorebi-bar -ErrorAction SilentlyContinue))
self.update_focused_workspace(false, false)?;
}
SocketMessage::DebugWindow(hwnd) => {
let window = Window::from(hwnd);
let window = Window::from(hwnd as isize);
let mut rule_debug = RuleDebug::default();
let _ = window.should_manage(None, &mut rule_debug);
let schema = serde_json::to_string_pretty(&rule_debug)?;