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:
parent
343a7643b7
commit
86cb1769f6
1 changed files with 0 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue