summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-03-04 07:52:34 +0000
committerRoland McGrath <roland@gnu.org>1994-03-04 07:52:34 +0000
commit6f3e8e346c7367628499982b955ab38582462637 (patch)
tree84923f0934ac73ec87bb309ae5d50775effeb5ec /src
parent31efa7c9f6a228e55c62f37b7bbec8bf884f2398 (diff)
downloademacs-6f3e8e346c7367628499982b955ab38582462637.tar.gz
[USE_X_TOOLKIT] (xmenu_show): Pass display to XtWindowToWidget.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 4a82d47987a..5258888dd4d 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -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)
{