summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@unixuser.org>2012-09-04 14:27:28 -0700
committerEvan Nemerson <evan@coeus-group.com>2012-09-04 14:27:28 -0700
commita0c7cdfac469fec129078ccf9c8c0f484ee8b52b (patch)
tree26818b494d6c8c2b400a1ed8a870e4d5c955e401
parenteb634ab3c90668638f92f6428acd5e09cbc4112e (diff)
downloadvala-a0c7cdfac469fec129078ccf9c8c0f484ee8b52b.tar.gz
x11: Add GenericEvent bindings
Fixes bug 683310.
-rw-r--r--vapi/x11.vapi29
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;