[PATCH kdrive/ephyr] ephyr: use XCB_EVENT_RESPONSE_TYPE macro

Laércio de Sousa laerciosousa at sme-mogidascruzes.sp.gov.br
Fri Jun 10 14:32:56 UTC 2016


Signed-off-by: Laércio de Sousa <laerciosousa at sme-mogidascruzes.sp.gov.br>
---
 hw/kdrive/ephyr/ephyr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c
index fe947db..5a8d9ef 100644
--- a/hw/kdrive/ephyr/ephyr.c
+++ b/hw/kdrive/ephyr/ephyr.c
@@ -27,6 +27,7 @@
 #include <kdrive-config.h>
 #endif
 
+#include <xcb/xcb_event.h>
 #include <xcb/xcb_keysyms.h>
 #include <X11/keysym.h>
 
@@ -1127,7 +1128,7 @@ ephyrXcbNotify(int fd, int ready, void *data)
             break;
         }
 
-        switch (xev->response_type & 0x7f) {
+        switch (XCB_EVENT_RESPONSE_TYPE(xev)) {
         case 0:
             ephyrProcessErrorEvent(xev);
             break;
-- 
2.7.4



More information about the xorg-devel mailing list