From 76a3c2cda578ae2954a64c704b4522b8e3168f35 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 20 Dec 2005 21:37:36 +0000 Subject: [PATCH] (Fx_popup_menu): Set Vmenu_updating_frame to f if position is non-nil, else set it to nil. --- src/xmenu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xmenu.c b/src/xmenu.c index 468462a6ceb..c6640916f32 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -899,8 +899,11 @@ no quit occurs and `x-popup-menu' returns nil. */) xpos += XINT (x); ypos += XINT (y); + + XSETFRAME (Vmenu_updating_frame, f); } - Vmenu_updating_frame = Qnil; + else + Vmenu_updating_frame = Qnil; #endif /* HAVE_MENUS */ record_unwind_protect (unuse_menu_items, Qnil); -- 2.39.2