diff options
| author | magicalhack <hello@magicalhack.net> | 2026-01-17 13:14:28 -0500 |
|---|---|---|
| committer | magicalhack <hello@magicalhack.net> | 2026-01-17 13:14:28 -0500 |
| commit | 59d08f3a5705c8db2fc99291af6079f0c7a30819 (patch) | |
| tree | cc267df40f3489438d7739208bb1ee5913b31ebf | |
| parent | d46c547264c2be4ff46887d96354e653dbd6069d (diff) | |
Minor x11/xlib bindings fixes
- Fix Xutf8LookupString signature (^cstring -> cstring)
- Fix type of KeySym (u32 -> uint)
| -rw-r--r-- | vendor/x11/xlib/xlib_keysym.odin | 2 | ||||
| -rw-r--r-- | vendor/x11/xlib/xlib_procs.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vendor/x11/xlib/xlib_keysym.odin b/vendor/x11/xlib/xlib_keysym.odin index 61284c723..267b77b1c 100644 --- a/vendor/x11/xlib/xlib_keysym.odin +++ b/vendor/x11/xlib/xlib_keysym.odin @@ -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 */ diff --git a/vendor/x11/xlib/xlib_procs.odin b/vendor/x11/xlib/xlib_procs.odin index c33c6d351..2409ad000 100644 --- a/vendor/x11/xlib/xlib_procs.odin +++ b/vendor/x11/xlib/xlib_procs.odin @@ -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, |