diff options
author | Daiki Ueno <ueno@unixuser.org> | 2012-09-04 14:27:28 -0700 |
---|---|---|
committer | Evan Nemerson <evan@coeus-group.com> | 2012-09-04 14:27:28 -0700 |
commit | a0c7cdfac469fec129078ccf9c8c0f484ee8b52b (patch) | |
tree | 26818b494d6c8c2b400a1ed8a870e4d5c955e401 | |
parent | eb634ab3c90668638f92f6428acd5e09cbc4112e (diff) | |
download | vala-a0c7cdfac469fec129078ccf9c8c0f484ee8b52b.tar.gz |
x11: Add GenericEvent bindings
Fixes bug 683310.
-rw-r--r-- | vapi/x11.vapi | 29 |
1 files changed, 28 insertions, 1 deletions
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; |