From dca3296e5249db932106d8bafea85f5a6b55ca3c Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 7 Aug 1998 07:23:07 +0000 Subject: [PATCH] (FRAME_OUTER_WINDOW): New macro. --- src/xterm.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/xterm.h b/src/xterm.h index 28749dee0be..5e3f6d9f896 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -508,9 +508,16 @@ struct x_output #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) -- 2.39.2