(xmenu_show, xdialog_show):
authorRichard M. Stallman <rms@gnu.org>
Wed, 27 Apr 1994 08:27:50 +0000 (08:27 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 27 Apr 1994 08:27:50 +0000 (08:27 +0000)
If we unread some events, set interrupt_input_pending.

src/xmenu.c

index 50e3ceb..40aadbc 100644 (file)
@@ -1682,6 +1682,8 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
       XPutBackEvent (XDISPLAY &queue_tmp->event);
       queue = queue_tmp->next;
       free ((char *)queue_tmp);
+      /* Cause these events to get read as soon as we UNBLOCK_INPUT.  */
+      interrupt_input_pending = 1;
     }
 
   /* Find the selected item, and its pane, to return
@@ -1930,6 +1932,8 @@ xdialog_show (f, menubarp, keymaps, title, error)
       XPutBackEvent (XDISPLAY &queue_tmp->event);
       queue = queue_tmp->next;
       free ((char *)queue_tmp);
+      /* Cause these events to get read as soon as we UNBLOCK_INPUT.  */
+      interrupt_input_pending = 1;
     }
 
   /* Find the selected item, and its pane, to return