From 86cb1769f6a11132810a99b0b066da1ac6568e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 26 Mar 2013 01:49:05 +0100 Subject: [PATCH] ctk-curses: Remove extra mouse events pumping loop It was added to avoid getting garbage keyboard input in some cases, however it seems not to happen very often and might be the cause of hang in OSX. If garbage input happens again we can always try to pump a single event each time instead of looping anyway. --- platform/native/ctk/ctk-curses.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/platform/native/ctk/ctk-curses.c b/platform/native/ctk/ctk-curses.c index d660e11cb..4670ebffb 100644 --- a/platform/native/ctk/ctk-curses.c +++ b/platform/native/ctk/ctk-curses.c @@ -360,10 +360,6 @@ console_readkey(int k) /*fprintf(stderr, "mevent: %d: %d, %d, %d, %lx ; %d\n", event.id, event.x, event.y, event.z, event.bstate, button); */ } - /* just in case */ - while(getmouse(&event) == OK) { - /*fprintf(stderr, "pumped mevent\n"); */ - } return; } case KEY_LEFT: