changeset 1304:93d55019750e

* xmenu.c: #include "keyboard.h". (Fx_popup_menu): Use the event accessors defined in keyboard.h, instead of writing out cars and cdrs.
author Jim Blandy <jimb@redhat.com>
date Fri, 02 Oct 1992 22:18:46 +0000
parents 0a488d74fd6c
children 5c19f71f0314
files src/xmenu.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Fri Oct 02 20:13:46 1992 +0000
+++ b/src/xmenu.c	Fri Oct 02 22:18:46 1992 +0000
@@ -34,6 +34,7 @@
 #include "lisp.h"
 #include "frame.h"
 #include "window.h"
+#include "keyboard.h"
 
 /* This may include sys/types.h, and that somehow loses
    if this is not done before the other system files.  */
@@ -130,9 +131,9 @@
     }
   else
     {
-      tem = Fcdr (position);
-      window = Fcar (tem);
-      tem = Fcar (Fcdr (Fcdr (tem)));
+      tem = EVENT_START (position);
+      window = POSN_WINDOW (tem);
+      tem = POSN_WINDOW_POSN (tem);
       x = Fcar (tem);
       y = Fcdr (tem);
     }