changeset 67703:7ae48da37b8f

(Fx_popup_menu): Set Vmenu_updating_frame to f if position is non-nil, else set it to nil.
author Juri Linkov <juri@jurta.org>
date Tue, 20 Dec 2005 21:37:36 +0000
parents e1a1deda5d65
children 06f3a72bffb2
files src/xmenu.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Tue Dec 20 17:39:47 2005 +0000
+++ b/src/xmenu.c	Tue Dec 20 21:37:36 2005 +0000
@@ -899,8 +899,11 @@
 
       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);