diff src/xmenu.c @ 2153:42ceb87b43a1

(Fx_popup_menu): Allow a frame instead of a window, in arg. Use Fcar, Fcdr when extracting from event, to check data types.
author Richard M. Stallman <rms@gnu.org>
date Fri, 12 Mar 1993 10:15:36 +0000
parents 1b6e54507323
children 0639c52f017c
line wrap: on
line diff
--- a/src/xmenu.c	Fri Mar 12 06:27:05 1993 +0000
+++ b/src/xmenu.c	Fri Mar 12 10:15:36 1993 +0000
@@ -132,9 +132,9 @@
     }
   else
     {
-      tem = EVENT_START (position);
-      window = POSN_WINDOW (tem);
-      tem = POSN_WINDOW_POSN (tem);
+      tem = Fcar (Fcdr (position));  /* EVENT_START (position) */
+      window = Fcar (tem);	     /* POSN_WINDOW (tem) */
+      tem = Fcar (Fcdr (Fcdr (tem))); /* POSN_WINDOW_POSN (tem) */
       x = Fcar (tem);
       y = Fcdr (tem);
     }