mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-30 12:14:10 +01:00
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:
1 parent
b769f166d3
commit
302e3830e9
3 files changed
+3
-3
No files matched your search
@@ -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(),
|
||||
)
|
||||
|
||||
@@ -283,7 +283,7 @@ pub enum SocketMessage {
|
||||
SocketSchema,
|
||||
StaticConfigSchema,
|
||||
GenerateStaticConfig,
|
||||
DebugWindow(isize),
|
||||
DebugWindow(i64),
|
||||
// low level commands
|
||||
ApplyState(State),
|
||||
}
|
||||
|
||||
@@ -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)?;
|
||||
|
||||
Reference in new issue
Block a user