changeset 106057:385ba537122c

*** empty log message ***
author Jan Djärv <jan.h.d@swipnet.se>
date Mon, 16 Nov 2009 19:46:56 +0000
parents b3bd00b680bb
children b6d8539323de
files src/xmenu.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Mon Nov 16 19:43:40 2009 +0000
+++ b/src/xmenu.c	Mon Nov 16 19:46:56 2009 +0000
@@ -433,6 +433,7 @@
           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 @@
       else
         ntp = &next_time;
 
-      XFlush ((Display*) data);
       select (n + 1, &read_fds, (SELECT_TYPE *)0, (SELECT_TYPE *)0, ntp);
     }
 }