From: Richard M. Stallman Date: Fri, 7 Aug 1998 07:23:07 +0000 (+0000) Subject: (FRAME_OUTER_WINDOW): New macro. X-Git-Tag: emacs-20.3~145 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dca3296e5249db932106d8bafea85f5a6b55ca3c;p=emacs.git (FRAME_OUTER_WINDOW): New macro. --- 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)