about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-10 18:19:48 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-10 18:19:48 +0100
commite6d1bf78a640b77d25f933dca0d75f91e20b6a1d (patch)
treeccf099e562e3ca17dcb3e29a3871099fd5d88225 /src
parentb4b8617a92ab7768d7a33451321cd64cb3e8ad8b (diff)
downloadbox64-e6d1bf78a640b77d25f933dca0d75f91e20b6a1d.tar.gz
box64-e6d1bf78a640b77d25f933dca0d75f91e20b6a1d.zip
[BOX32][WRAPPER] Added 1 more 32bits libX11 wrapped function
Diffstat (limited to 'src')
-rw-r--r--src/wrapped32/generated/functions_list.txt1
-rw-r--r--src/wrapped32/generated/wrappedlibx11types32.h1
-rw-r--r--src/wrapped32/wrappedlibx11.c7
-rw-r--r--src/wrapped32/wrappedlibx11_private.h2
4 files changed, 10 insertions, 1 deletions
diff --git a/src/wrapped32/generated/functions_list.txt b/src/wrapped32/generated/functions_list.txt
index 434e26ea..c4b00fe9 100644
--- a/src/wrapped32/generated/functions_list.txt
+++ b/src/wrapped32/generated/functions_list.txt
@@ -2259,6 +2259,7 @@ wrappedlibx11:
   - XGetEventData
   - XNextEvent
   - XPeekEvent
+  - XPutBackEvent
 - LFpi:
   - XLookupKeysym
 - pFiV:
diff --git a/src/wrapped32/generated/wrappedlibx11types32.h b/src/wrapped32/generated/wrappedlibx11types32.h
index e3bcafe0..3f64fa88 100644
--- a/src/wrapped32/generated/wrappedlibx11types32.h
+++ b/src/wrapped32/generated/wrappedlibx11types32.h
@@ -90,6 +90,7 @@ typedef uintptr_t (*LFXLiiuuuiupLp_t)(void*, uintptr_t, int32_t, int32_t, uint32
 	GO(XGetEventData, iFXp_t) \
 	GO(XNextEvent, iFXp_t) \
 	GO(XPeekEvent, iFXp_t) \
+	GO(XPutBackEvent, iFXp_t) \
 	GO(XLookupKeysym, LFpi_t) \
 	GO(XVaCreateNestedList, pFiV_t) \
 	GO(XCreateIC, pFpV_t) \
diff --git a/src/wrapped32/wrappedlibx11.c b/src/wrapped32/wrappedlibx11.c
index e4f42c0e..f7680b91 100644
--- a/src/wrapped32/wrappedlibx11.c
+++ b/src/wrapped32/wrappedlibx11.c
@@ -1451,6 +1451,13 @@ EXPORT int my32_XFilterEvent(x64emu_t* emu, my_XEvent_32_t* evt, XID window)
     return my->XFilterEvent(&event, window);
 }
 
+EXPORT int my32_XPutBackEvent(x64emu_t* emu, void* dpy, my_XEvent_32_t* evt)
+{
+    my_XEvent_t event = {0};
+    unconvertXEvent(&event, evt);
+    return my->XPutBackEvent(dpy, &event);
+}
+
 void WrapXImage(void* d, void* s)
 {
     XImage *src = s;
diff --git a/src/wrapped32/wrappedlibx11_private.h b/src/wrapped32/wrappedlibx11_private.h
index 11bdb891..89fa3af4 100644
--- a/src/wrapped32/wrappedlibx11_private.h
+++ b/src/wrapped32/wrappedlibx11_private.h
@@ -958,7 +958,7 @@ GO(XProcessInternalConnection, vFXi)
 GO(XProtocolRevision, iFX)
 GO(XProtocolVersion, iFX)
 //GO(_XPutBackEvent, iFpp)
-//GO(XPutBackEvent, iFpp)
+GOM(XPutBackEvent, iFEXp)
 GOM(XPutImage, iFEXLppiiiiuu)
 GO(XPutPixel, vFXiiL)
 GO(XQLength, iFX)