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)