aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-10-02 22:18:46 +0000
committerJim Blandy1992-10-02 22:18:46 +0000
commit031b0e312243d51efbec53712e016578034212ae (patch)
tree3f47d8de57a658db163bdaad97f0009313e4da03 /src
parentdb3563a8a266c4faa4e4768f447a22f86fa70d86 (diff)
downloademacs-031b0e312243d51efbec53712e016578034212ae.tar.gz
emacs-031b0e312243d51efbec53712e016578034212ae.zip
* xmenu.c: #include "keyboard.h".
(Fx_popup_menu): Use the event accessors defined in keyboard.h, instead of writing out cars and cdrs.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index a15907090e6..14f45cb18b9 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -34,6 +34,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
34#include "lisp.h" 34#include "lisp.h"
35#include "frame.h" 35#include "frame.h"
36#include "window.h" 36#include "window.h"
37#include "keyboard.h"
37 38
38/* This may include sys/types.h, and that somehow loses 39/* This may include sys/types.h, and that somehow loses
39 if this is not done before the other system files. */ 40 if this is not done before the other system files. */
@@ -130,9 +131,9 @@ be the return value for that line (i.e. if it is selected.")
130 } 131 }
131 else 132 else
132 { 133 {
133 tem = Fcdr (position); 134 tem = EVENT_START (position);
134 window = Fcar (tem); 135 window = POSN_WINDOW (tem);
135 tem = Fcar (Fcdr (Fcdr (tem))); 136 tem = POSN_WINDOW_POSN (tem);
136 x = Fcar (tem); 137 x = Fcar (tem);
137 y = Fcdr (tem); 138 y = Fcdr (tem);
138 } 139 }