summaryrefslogtreecommitdiff
path: root/x11.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-27 23:36:44 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-27 23:36:44 -0800
commit73c82c6b983e39e24f49c2c794d654bd349309d3 (patch)
tree02cace53e9c4e44907b2cb551b02310b59426b48 /x11.h
parentd7eb5a954115ed3defcbc89a40ad66b3c353dc90 (diff)
downloadxscope-73c82c6b983e39e24f49c2c794d654bd349309d3.tar.gz
Print correct event names for events sent via SendEvent requests
The high bit of an X11 event id is set to 0 for events generated by the server, 1 for events sent from another client via SendEvent requests. Previously xscope printed: ..............EVENT: **INVALID** (150) Now it prints: ..............EVENT: ConfigureNotify source: SendEvent Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'x11.h')
-rw-r--r--x11.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/x11.h b/x11.h
index 3004362..59e33e6 100644
--- a/x11.h
+++ b/x11.h
@@ -371,6 +371,7 @@ extern int PrintKEYCODEA(const unsigned char *buf);
extern int PrintBUTTON(const unsigned char *buf);
extern int PrintBUTTONA(const unsigned char *buf);
extern int PrintEVENTFORM(const unsigned char *buf);
+extern int PrintEVENT(const unsigned char *buf);
extern int PrintENUMERATED(const unsigned char *buf, short length,
struct ValueListEntry *ValueList);
extern int PrintSET(const unsigned char *buf, short length,