diff src/xmenu.c @ 6198:d941186e8fb9

[USE_X_TOOLKIT] (xmenu_show): Pass display to XtWindowToWidget.
author Roland McGrath <roland@gnu.org>
date Fri, 04 Mar 1994 07:52:34 +0000
parents 57d031171fa2
children 01c57ae8ca57
line wrap: on
line diff
--- a/src/xmenu.c	Fri Mar 04 06:11:51 1994 +0000
+++ b/src/xmenu.c	Fri Mar 04 07:52:34 1994 +0000
@@ -1340,9 +1340,10 @@
 	}
 
       XtDispatchEvent (&event);
-      if (XtWindowToWidget(event.xany.window) != menu)
+      if (XtWindowToWidget(XDISPLAY event.xany.window) != menu)
 	{
-	  queue_tmp = (struct event_queue *) malloc (sizeof (struct event_queue));
+	  queue_tmp
+	    = (struct event_queue *) malloc (sizeof (struct event_queue));
 
 	  if (queue_tmp != NULL) 
 	    {