Signed-off-by: Julien Danjou <julien@danjou.info>
case NORMAL_STATE:
while ( ContinueState &&
NULL != (theEvent = xcb_poll_for_event( xc )) ) { /*while ( XCheckMaskEvent( theDisplay, EVENT_MASK, &theEvent ) ) {*/
- switch ( theEvent->response_type & 0x7f ) {
+ switch (XCB_EVENT_RESPONSE_TYPE(theEvent)) {
case XCB_CONFIGURE_NOTIFY:
theConfigureNotification = (xcb_configure_notify_event_t *)theEvent;
WindowWidth = theConfigureNotification->width;
{
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,
xcb_generic_event_t *e;
if (e = xcb_wait_for_event(data.conn))
{
- switch (e->response_type & 0x7f)
+ switch (XCB_EVENT_RESPONSE_TYPE(e))
{
case XCB_EXPOSE:
{