changeset 34273:3e8cb5ef9ac7

caca: process all pending events instead of exactly one per check_events. Patch by Paul B. Mahol [onemda gmail com].
author reimar
date Thu, 24 Nov 2011 00:00:39 +0000
parents 4074457d5746
children 38d22d3f56fe
files libvo/vo_caca.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_caca.c	Wed Nov 23 23:59:01 2011 +0000
+++ b/libvo/vo_caca.c	Thu Nov 24 00:00:39 2011 +0000
@@ -221,8 +221,7 @@
 static void check_events(void)
 {
     caca_event_t cev;
-    if (!caca_get_event(display, CACA_EVENT_ANY, &cev, 1))
-        return;
+    while (caca_get_event(display, CACA_EVENT_ANY, &cev, 0)) {
 
     switch (cev.type) {
     case CACA_EVENT_RESIZE:
@@ -350,6 +349,7 @@
         }
     }
     }
+    }
 }
 
 static void uninit(void)