From 731bffa99e7af6dd849d0173c2f09cfdd33af49b Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 5 Jan 2004 18:08:50 +0000 Subject: [PATCH] * src/io.c: + Fixed a bug that caused ButtonRelease events to be forgotten under X11. * examples/cacaview.c: + Use instead of . --- examples/cacaview.c | 2 +- src/io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cacaview.c b/examples/cacaview.c index 1ecfe44..c786fd5 100644 --- a/examples/cacaview.c +++ b/examples/cacaview.c @@ -25,7 +25,7 @@ #include #include -#include +#include #include #if defined(HAVE_IMLIB2_H) diff --git a/src/io.c b/src/io.c index e189c8a..2921dd1 100644 --- a/src/io.c +++ b/src/io.c @@ -110,7 +110,7 @@ unsigned int caca_get_event(void) if(xevent.type == ButtonPress) return CACA_EVENT_MOUSE_PRESS | 1; - if(xevent.type == ButtonPress) + if(xevent.type == ButtonRelease) return CACA_EVENT_MOUSE_RELEASE | 1; if(xevent.type == KeyPress)