Mercurial > emacs
changeset 22934:c3b29b916c9c
(FRAME_OUTER_WINDOW): New macro.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 07 Aug 1998 07:23:07 +0000 |
parents | f85d55276ec5 |
children | 9c6f6af7919f |
files | src/xterm.h |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.h Fri Aug 07 07:22:27 1998 +0000 +++ b/src/xterm.h Fri Aug 07 07:23:07 1998 +0000 @@ -508,9 +508,16 @@ #define FRAME_DEFAULT_FACE(f) ((f)->output_data.x->computed_faces[0]) #define FRAME_MODE_LINE_FACE(f) ((f)->output_data.x->computed_faces[1]) -/* Return the window associated with the frame F. */ +/* Return the X window used for displaying data in frame F. */ #define FRAME_X_WINDOW(f) ((f)->output_data.x->window_desc) +/* Return the outermost X window associated with the frame F. */ +#ifdef USE_X_TOOLKIT +#define FRAME_OUTER_WINDOW(f) (XtWindow ((f)->output_data.x->widget)) +#else +#define FRAME_OUTER_WINDOW(f) (FRAME_X_WINDOW (f)) +#endif + #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel) #define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel) #define FRAME_FONT(f) ((f)->output_data.x->font)