changeset 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 078737073080
children 69c58e548ca5
files src/xmenu.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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);
     }