aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/InitExt.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-09-02 19:17:00 +0000
committermarha <marha@users.sourceforge.net>2009-09-02 19:17:00 +0000
commit7842eeba5f0567175c41728d3eaae59fcbdef7a6 (patch)
tree53840a037bfe76f55afca5891b9eb689caa9094b /libX11/src/InitExt.c
parente5072ee10b7ce789b67554e9000070c78f0f3d89 (diff)
downloadvcxsrv-7842eeba5f0567175c41728d3eaae59fcbdef7a6.tar.gz
vcxsrv-7842eeba5f0567175c41728d3eaae59fcbdef7a6.tar.bz2
vcxsrv-7842eeba5f0567175c41728d3eaae59fcbdef7a6.zip
Switch to libX11-1.2.99.901.tar.gz
Diffstat (limited to 'libX11/src/InitExt.c')
-rw-r--r--libX11/src/InitExt.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/libX11/src/InitExt.c b/libX11/src/InitExt.c
index 92fc44afa..0e6c94ee6 100644
--- a/libX11/src/InitExt.c
+++ b/libX11/src/InitExt.c
@@ -253,6 +253,49 @@ WireToEventType XESetWireToEvent(
return (WireToEventType)oldproc;
}
+typedef Bool (*WireToEventCookieType) (
+ Display* /* display */,
+ XGenericEventCookie* /* re */,
+ xEvent* /* event */
+);
+
+WireToEventCookieType XESetWireToEventCookie(
+ Display *dpy, /* display */
+ int extension, /* extension major opcode */
+ WireToEventCookieType proc /* routine to call for generic events */
+ )
+{
+ WireToEventCookieType oldproc;
+ if (proc == NULL) proc = (WireToEventCookieType)_XUnknownWireEventCookie;
+ LockDisplay (dpy);
+ oldproc = dpy->generic_event_vec[extension & 0x7F];
+ dpy->generic_event_vec[extension & 0x7F] = proc;
+ UnlockDisplay (dpy);
+ return (WireToEventCookieType)oldproc;
+}
+
+typedef Bool (*CopyEventCookieType) (
+ Display* /* display */,
+ XGenericEventCookie* /* in */,
+ XGenericEventCookie* /* out */
+);
+
+CopyEventCookieType XESetCopyEventCookie(
+ Display *dpy, /* display */
+ int extension, /* extension major opcode */
+ CopyEventCookieType proc /* routine to copy generic events */
+ )
+{
+ CopyEventCookieType oldproc;
+ if (proc == NULL) proc = (CopyEventCookieType)_XUnknownCopyEventCookie;
+ LockDisplay (dpy);
+ oldproc = dpy->generic_event_copy_vec[extension & 0x7F];
+ dpy->generic_event_copy_vec[extension & 0x7F] = proc;
+ UnlockDisplay (dpy);
+ return (CopyEventCookieType)oldproc;
+}
+
+
typedef Status (*EventToWireType) (
Display* /* display */,
XEvent* /* re */,