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.
This commit is contained in:
Alexander Cusaac (MightyChubz)
2026-05-11 20:55:33 -04:00
parent 3b909eab03
commit 202a4f19ca

View File

@@ -1302,7 +1302,7 @@ foreign xlib {
dipslay: ^Display,
window: Window,
screen_no: i32,
) -> Status ---
) -> b32 ---
WithdrawWindow :: proc(
dipslay: ^Display,
window: Window,