Browse Source

* src/io.c:

+ Fixed a bug that caused ButtonRelease events to be forgotten under X11.
  * examples/cacaview.c:
    + Use <stdlib.h> instead of <malloc.h>.
tags/v0.99.beta14
Sam Hocevar sam 21 years ago
parent
commit
731bffa99e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      examples/cacaview.c
  2. +1
    -1
      src/io.c

+ 1
- 1
examples/cacaview.c View File

@@ -25,7 +25,7 @@

#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <unistd.h>

#if defined(HAVE_IMLIB2_H)


+ 1
- 1
src/io.c View File

@@ -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)


Loading…
Cancel
Save