make flames/julia/neko demos use XCB_EVENT_RESPONSE_TYPE to determine event type
[free-sw/xcb/demo] / tests / flames.c
index 59bfbdf..f55acea 100644 (file)
@@ -243,7 +243,7 @@ main ()
     {
       if ((e = xcb_poll_for_event (f->xcb.c)))
        {
-         switch (e->response_type & 0x7f)
+         switch (XCB_EVENT_RESPONSE_TYPE(e))
            {
            case XCB_EXPOSE:
              xcb_copy_area(f->xcb.c, f->xcb.pixmap, f->xcb.draw, gc,