Minor x11/xlib bindings fixes

- Fix Xutf8LookupString signature (^cstring -> cstring)
- Fix type of KeySym (u32 -> uint)
This commit is contained in:
magicalhack
2026-01-17 13:14:28 -05:00
parent d46c547264
commit 59d08f3a57
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#+build linux, freebsd, openbsd
package xlib
KeySym :: enum u32 {
KeySym :: enum uint {
XK_BackSpace = 0xff08, /* Back space, back char */
XK_Tab = 0xff09,
XK_Linefeed = 0xff0a, /* Linefeed, LF */

View File

@@ -2068,7 +2068,7 @@ foreign xlib {
Xutf8LookupString :: proc(
ic: XIC,
event: ^XKeyPressedEvent,
buffer_return: ^cstring,
buffer_return: cstring,
bytes_buffer: i32,
keysym_return: ^KeySym,
status_return: ^LookupStringStatus,