From 202a4f19caea073a15ab75e0aa58cf2dca560c2b Mon Sep 17 00:00:00 2001 From: "Alexander Cusaac (MightyChubz)" Date: Mon, 11 May 2026 20:55:33 -0400 Subject: [PATCH] refactor: Change return type for IconifyWindow This one is a little tricky. While the docs show that XIconifyWIndow returns a Status type, hinting at the Status enum we have, it is not *treated* like a Status type. This function, so far in my experience, is the only one to return non-zero when successful, and zero when a failure occurrs (BadValue or BadWindow). Because of this, the type should actually be a b32 to act as a boolean. Zero (false) for failure, non-zero (true) for true. --- vendor/x11/xlib/xlib_procs.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/x11/xlib/xlib_procs.odin b/vendor/x11/xlib/xlib_procs.odin index 0c03f883f..528bcaa72 100644 --- a/vendor/x11/xlib/xlib_procs.odin +++ b/vendor/x11/xlib/xlib_procs.odin @@ -1302,7 +1302,7 @@ foreign xlib { dipslay: ^Display, window: Window, screen_no: i32, - ) -> Status --- + ) -> b32 --- WithdrawWindow :: proc( dipslay: ^Display, window: Window,