aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 9d073411f34..23b812f28f2 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -433,6 +433,7 @@ x_menu_wait_for_event (void *data)
433 int fd = ConnectionNumber (dpyinfo->display); 433 int fd = ConnectionNumber (dpyinfo->display);
434 FD_SET (fd, &read_fds); 434 FD_SET (fd, &read_fds);
435 if (fd > n) n = fd; 435 if (fd > n) n = fd;
436 XFlush (dpyinfo->display);
436 } 437 }
437 438
438 if (secs < 0 && usecs < 0) 439 if (secs < 0 && usecs < 0)
@@ -440,7 +441,6 @@ x_menu_wait_for_event (void *data)
440 else 441 else
441 ntp = &next_time; 442 ntp = &next_time;
442 443
443 XFlush ((Display*) data);
444 select (n + 1, &read_fds, (SELECT_TYPE *)0, (SELECT_TYPE *)0, ntp); 444 select (n + 1, &read_fds, (SELECT_TYPE *)0, (SELECT_TYPE *)0, ntp);
445 } 445 }
446} 446}