From: Daiki Ueno Date: Tue, 4 Sep 2012 21:27:28 +0000 (-0700) Subject: x11: Add GenericEvent bindings X-Git-Tag: 0.17.7~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0c7cdfac469fec129078ccf9c8c0f484ee8b52b;p=thirdparty%2Fvala.git x11: Add GenericEvent bindings Fixes bug 683310. --- diff --git a/vapi/x11.vapi b/vapi/x11.vapi index 5eae3c159..0044de2ea 100644 --- a/vapi/x11.vapi +++ b/vapi/x11.vapi @@ -307,6 +307,9 @@ namespace X { [CCode (cname = "XMoveWindow")] public void move_window (Window window, int x, int y); + + [CCode (cname = "XQueryExtension")] + public bool query_extension(string name, out int major_opcode, out int first_event_return, out int first_error_return); } [Compact] @@ -736,7 +739,8 @@ namespace X { SelectionNotify, ColormapNotify, ClientMessage, - MappingNotify + MappingNotify, + GenericEvent } // union @@ -762,6 +766,8 @@ namespace X { public PropertyEvent xproperty; public SelectionEvent xselection; public ClientMessageEvent xclient; + public GenericEvent xgeneric; + public GenericEventCookie xcookie; } [CCode (cname = "XAnyEvent")] @@ -1027,6 +1033,27 @@ namespace X { public ClientMessageEventData data; } + [CCode (cname = "XGenericEvent")] + public struct GenericEvent { + public int type; + public ulong serial; + public bool send_event; + public unowned Display display; + public int extension; + public int evtype; + } + + [CCode (cname = "XGenericEventCookie")] + public struct GenericEventCookie { + public int type; + public ulong serial; + public bool send_event; + public unowned Display display; + public int extension; + public uint cookie; + public void *data; + } + [CCode (cname = "RECTANGLE", has_type_id = false)] public struct Rectangle { public short x;