mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-19 06:13:47 -04:00
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:
2
vendor/x11/xlib/xlib_procs.odin
vendored
2
vendor/x11/xlib/xlib_procs.odin
vendored
@@ -1302,7 +1302,7 @@ foreign xlib {
|
||||
dipslay: ^Display,
|
||||
window: Window,
|
||||
screen_no: i32,
|
||||
) -> Status ---
|
||||
) -> b32 ---
|
||||
WithdrawWindow :: proc(
|
||||
dipslay: ^Display,
|
||||
window: Window,
|
||||
|
||||
Reference in New Issue
Block a user