From 2307d445060c70f0cc04a9a9257e5c7ffe8b58bf Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Sun, 11 May 2025 21:26:25 -0700 Subject: [PATCH] forward declare XLookupString ourselves, since it is apparently missing in libx11-dev --- src/os/gfx/linux/os_gfx_linux.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/os/gfx/linux/os_gfx_linux.h b/src/os/gfx/linux/os_gfx_linux.h index 96341575..4a562ae5 100644 --- a/src/os/gfx/linux/os_gfx_linux.h +++ b/src/os/gfx/linux/os_gfx_linux.h @@ -14,6 +14,17 @@ #include #include +//////////////////////////////// +//~ rjf: Prototypes (which seem to sometimes be missing) + +typedef struct _XComposeStatus +{ + XPointer compose_ptr; + int chars_matched; +} +XComposeStatus; +int XLookupString(XKeyEvent *event_struct, char *buffer_return, int bytes_buffer, KeySym *keysym_return, XComposeStatus *status_in_out); + //////////////////////////////// //~ rjf: Window State