]> code.delx.au - gnu-emacs/commitdiff
(Fx_popup_menu): Set Vmenu_updating_frame to f if
authorJuri Linkov <juri@jurta.org>
Tue, 20 Dec 2005 21:37:36 +0000 (21:37 +0000)
committerJuri Linkov <juri@jurta.org>
Tue, 20 Dec 2005 21:37:36 +0000 (21:37 +0000)
position is non-nil, else set it to nil.

src/xmenu.c

index 468462a6ceb329dca9ef4f921359929c7701f99d..c6640916f3237f7e587c226c97784a552dc40074 100644 (file)
@@ -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);