diff options
author | Henning Sten <henning.sten@yahoo.com> | 2008-09-16 21:39:15 +0200 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2008-09-18 09:37:31 +0200 |
commit | 1e23ea8af077353dbe4b08e3aab8219f28cad1ac (patch) | |
tree | 0456878ec10193b9b4210387fb3a289b083ecc6c /neko | |
parent | c2a0b3f304d77e1ab3dbfba37714b14805fdb783 (diff) |
make flames/julia/neko demos use XCB_EVENT_RESPONSE_TYPE to determine event type
Signed-off-by: Julien Danjou <julien@danjou.info>
Diffstat (limited to 'neko')
-rw-r--r-- | neko/xcbneko.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/neko/xcbneko.c b/neko/xcbneko.c index 23b150e..ed31f3e 100644 --- a/neko/xcbneko.c +++ b/neko/xcbneko.c @@ -1188,7 +1188,7 @@ Bool ProcessEvent(void) { 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; |