summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-03-12 10:15:36 +0000
committerRichard M. Stallman <rms@gnu.org>1993-03-12 10:15:36 +0000
commit933ff4729c2ba80f7dbee4b2aba359be7f69f5f6 (patch)
treea7b9ed8aa23c2419f08f40918a8a6ee71c88b03f /src/xmenu.c
parent12740e58f3805fbe7865d1931000cf875975e32c (diff)
downloademacs-933ff4729c2ba80f7dbee4b2aba359be7f69f5f6.tar.gz
(Fx_popup_menu): Allow a frame instead of a window, in arg.
Use Fcar, Fcdr when extracting from event, to check data types.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index aa8ec70a520..4d86a6296b2 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -132,9 +132,9 @@ be the return value for that line (i.e. if it is selected).")
}
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);
}