diff options
| -rw-r--r-- | src/xmenu.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 120af6bf94c..86228a2214d 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -42,7 +42,7 @@ static char *rcsid_GXMenu_c = "$Header: xmenu.c,v 1.6 86/08/26 17:23:26 rlk Exp | |||
| 42 | #include <signal.h> | 42 | #include <signal.h> |
| 43 | #include "config.h" | 43 | #include "config.h" |
| 44 | #include "lisp.h" | 44 | #include "lisp.h" |
| 45 | #include "screen.h" | 45 | #include "frame.h" |
| 46 | #include "window.h" | 46 | #include "window.h" |
| 47 | 47 | ||
| 48 | /* This may include sys/types.h, and that somehow loses | 48 | /* This may include sys/types.h, and that somehow loses |
| @@ -96,7 +96,7 @@ DEFUN ("x-popup-menu",Fx_popup_menu, Sx_popup_menu, 1, 2, 0, | |||
| 96 | "Pop up a deck-of-cards menu and return user's selection.\n\ | 96 | "Pop up a deck-of-cards menu and return user's selection.\n\ |
| 97 | ARG is a position specification: a list ((XOFFSET YOFFSET) WINDOW)\n\ | 97 | ARG is a position specification: a list ((XOFFSET YOFFSET) WINDOW)\n\ |
| 98 | where XOFFSET and YOFFSET are positions in characters from the top left\n\ | 98 | where XOFFSET and YOFFSET are positions in characters from the top left\n\ |
| 99 | corner of WINDOW's screen. A mouse-event list will serve for this.\n\ | 99 | corner of WINDOW's frame. A mouse-event list will serve for this.\n\ |
| 100 | This controls the position of the center of the first line\n\ | 100 | This controls the position of the center of the first line\n\ |
| 101 | in the first pane of the menu, not the top left of the menu as a whole.\n\ | 101 | in the first pane of the menu, not the top left of the menu as a whole.\n\ |
| 102 | \n\ | 102 | \n\ |
| @@ -118,7 +118,7 @@ be the return value for that line (i.e. if it is selected.") | |||
| 118 | char *error_name; | 118 | char *error_name; |
| 119 | Lisp_Object ltitle, selection; | 119 | Lisp_Object ltitle, selection; |
| 120 | int i, j; | 120 | int i, j; |
| 121 | SCREEN_PTR s; | 121 | FRAME_PTR f; |
| 122 | Lisp_Object x, y, window; | 122 | Lisp_Object x, y, window; |
| 123 | 123 | ||
| 124 | window = Fcar (Fcdr (arg)); | 124 | window = Fcar (Fcdr (arg)); |
| @@ -127,12 +127,12 @@ be the return value for that line (i.e. if it is selected.") | |||
| 127 | CHECK_WINDOW (window, 0); | 127 | CHECK_WINDOW (window, 0); |
| 128 | CHECK_NUMBER (x, 0); | 128 | CHECK_NUMBER (x, 0); |
| 129 | CHECK_NUMBER (y, 0); | 129 | CHECK_NUMBER (y, 0); |
| 130 | s = XSCREEN (WINDOW_SCREEN (XWINDOW (window))); | 130 | f = XFRAME (WINDOW_FRAME (XWINDOW (window))); |
| 131 | 131 | ||
| 132 | XMenu_xpos = FONT_WIDTH (s->display.x->font) * XINT (x); | 132 | XMenu_xpos = FONT_WIDTH (f->display.x->font) * XINT (x); |
| 133 | XMenu_ypos = FONT_HEIGHT (s->display.x->font) * XINT (y); | 133 | XMenu_ypos = FONT_HEIGHT (f->display.x->font) * XINT (y); |
| 134 | XMenu_xpos += s->display.x->left_pos; | 134 | XMenu_xpos += f->display.x->left_pos; |
| 135 | XMenu_ypos += s->display.x->top_pos; | 135 | XMenu_ypos += f->display.x->top_pos; |
| 136 | 136 | ||
| 137 | ltitle = Fcar (menu); | 137 | ltitle = Fcar (menu); |
| 138 | CHECK_STRING (ltitle, 1); | 138 | CHECK_STRING (ltitle, 1); |