From 73c82c6b983e39e24f49c2c794d654bd349309d3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 27 Nov 2013 23:36:44 -0800 Subject: 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 --- x11.h | 1 + 1 file changed, 1 insertion(+) (limited to 'x11.h') 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, -- cgit v1.2.1