changeset 15375:1beabd8b78a1

(make_menu_in_widget): Set mapping delay for cascade buttons to zero.
author Richard M. Stallman <rms@gnu.org>
date Mon, 10 Jun 1996 17:31:25 +0000
parents 6b1faae68eba
children 73d3ebc6aecd
files lwlib/lwlib-Xm.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Mon Jun 10 17:30:50 1996 +0000
+++ b/lwlib/lwlib-Xm.c	Mon Jun 10 17:31:25 1996 +0000
@@ -440,7 +440,10 @@
 	{
 	  menu = XmCreatePulldownMenu (widget, cur->name, NULL, 0);
 	  make_menu_in_widget (instance, menu, cur->contents, 0);
-	  XtSetArg (al [ac], XmNsubMenuId, menu); ac++;
+          XtSetArg (al [ac], XmNsubMenuId, menu); ac++;
+          /* non-zero values don't work reliably in
+             conjunction with Emacs' event loop */
+          XtSetArg (al [ac], XmNmappingDelay, 0); ac++;
 	  button = XmCreateCascadeButtonGadget (widget, cur->name, al, ac);
 
 	  xm_update_label (instance, button, cur);