summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2009-11-16 19:46:56 +0000
committerJan Djärv <jan.h.d@swipnet.se>2009-11-16 19:46:56 +0000
commit1cb673191453c0ec6d708776f57a15cd2f266e20 (patch)
tree9f82294fb63a175cce74d9d2c178099f6cd1c41c /src/xmenu.c
parenteb1c06301f0cb4c647bb14b69531dfd64df2afd8 (diff)
downloademacs-1cb673191453c0ec6d708776f57a15cd2f266e20.tar.gz
*** empty log message ***
Diffstat (limited to 'src/xmenu.c')
-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)
int fd = ConnectionNumber (dpyinfo->display);
FD_SET (fd, &read_fds);
if (fd > n) n = fd;
+ XFlush (dpyinfo->display);
}
if (secs < 0 && usecs < 0)
@@ -440,7 +441,6 @@ x_menu_wait_for_event (void *data)
else
ntp = &next_time;
- XFlush ((Display*) data);
select (n + 1, &read_fds, (SELECT_TYPE *)0, (SELECT_TYPE *)0, ntp);
}
}