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.
This commit is contained in:
François Revol 2013-03-26 01:49:05 +01:00
parent 343a7643b7
commit 86cb1769f6

View file

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