1341 |
} |
} |
1342 |
} |
} |
1343 |
|
|
1344 |
/* Process all events in Xlib queue |
/* Process events in Xlib queue |
1345 |
Returns 0 after user quit, 1 otherwise */ |
Returns 0 after user quit, 1 otherwise */ |
1346 |
static int |
static int |
1347 |
xwin_process_events(void) |
xwin_process_events(void) |
1353 |
key_translation tr; |
key_translation tr; |
1354 |
char str[256]; |
char str[256]; |
1355 |
Status status; |
Status status; |
1356 |
|
int events = 0; |
1357 |
|
|
1358 |
while (XPending(g_display) > 0) |
while ((XPending(g_display) > 0) && events++ < 20) |
1359 |
{ |
{ |
1360 |
XNextEvent(g_display, &xevent); |
XNextEvent(g_display, &xevent); |
1361 |
|
|