From 6f3e8e346c7367628499982b955ab38582462637 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 4 Mar 1994 07:52:34 +0000 Subject: [PATCH] [USE_X_TOOLKIT] (xmenu_show): Pass display to XtWindowToWidget. --- src/xmenu.c | 5 +++-- 1 file 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) { -- 2.39.5