]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 16 Nov 2009 19:46:56 +0000 (19:46 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 16 Nov 2009 19:46:56 +0000 (19:46 +0000)
src/xmenu.c

index 9d073411f3460984a8e35150bc6c594de81f365d..23b812f28f20bf524136b6cd2a290025f01c42a4 100644 (file)
@@ -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);
     }
 }