]> git.eshelyaron.com Git - emacs.git/commitdiff
[USE_X_TOOLKIT] (xmenu_show): Pass display to XtWindowToWidget.
authorRoland McGrath <roland@gnu.org>
Fri, 4 Mar 1994 07:52:34 +0000 (07:52 +0000)
committerRoland McGrath <roland@gnu.org>
Fri, 4 Mar 1994 07:52:34 +0000 (07:52 +0000)
src/xmenu.c

index 4a82d47987a9db2503547590c6b3f81626ce3472..5258888dd4d2735d65277fe5494dacc9f27e42f7 100644 (file)
@@ -1340,9 +1340,10 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
        }
 
       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) 
            {