summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Sten <henning.sten@yahoo.com>2008-09-16 21:39:15 +0200
committerJulien Danjou <julien@danjou.info>2008-09-18 09:37:31 +0200
commit1e23ea8af077353dbe4b08e3aab8219f28cad1ac (patch)
tree0456878ec10193b9b4210387fb3a289b083ecc6c
parentc2a0b3f304d77e1ab3dbfba37714b14805fdb783 (diff)
make flames/julia/neko demos use XCB_EVENT_RESPONSE_TYPE to determine event type
Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r--neko/xcbneko.c2
-rw-r--r--tests/flames.c2
-rw-r--r--tests/julia.c2
3 files changed, 3 insertions, 3 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;
diff --git a/tests/flames.c b/tests/flames.c
index 59bfbdf..f55acea 100644
--- a/tests/flames.c
+++ b/tests/flames.c
@@ -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,
diff --git a/tests/julia.c b/tests/julia.c
index ebdc11f..c995d09 100644
--- a/tests/julia.c
+++ b/tests/julia.c
@@ -217,7 +217,7 @@ main (int argc, char *argv[])
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:
{