diff options
| author | Richard M. Stallman <rms@gnu.org> | 1996-09-25 22:41:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1996-09-25 22:41:09 +0000 |
| commit | 163b385a689e68916ee5ba24bebaeeec3265b7ae (patch) | |
| tree | 3b76c3651e3dfd0afe7029863eb7facad9e1d7ad /src/frame.h | |
| parent | 459f404248455603403220029955828b4072055c (diff) | |
| download | emacs-163b385a689e68916ee5ba24bebaeeec3265b7ae.tar.gz | |
(struct frame): New field window_width.
(FRAME_WINDOW_WIDTH): Refer to window_width field.
(SET_FRAME_WIDTH): Set window_width field as well as width field.
Diffstat (limited to 'src/frame.h')
| -rw-r--r-- | src/frame.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frame.h b/src/frame.h index 5f3c6028092..613f67e4cc3 100644 --- a/src/frame.h +++ b/src/frame.h @@ -167,6 +167,7 @@ struct frame /* Size of this frame, in units of characters. */ EMACS_INT height; EMACS_INT width; + EMACS_INT window_width; /* New height and width for pending size change. 0 if no change pending. */ int new_height, new_width; @@ -381,8 +382,8 @@ typedef struct frame *FRAME_PTR; : 0) #define FRAME_WINDOW_WIDTH_ARG(f, width) \ ((width) + FRAME_SCROLL_BAR_WIDTH (f)) -#define FRAME_WINDOW_WIDTH(f) ((f)->width + FRAME_SCROLL_BAR_WIDTH (f)) -#define SET_FRAME_WIDTH(f,val) ((f)->width = (val)) +#define FRAME_WINDOW_WIDTH(f) ((f)->window_width) +#define SET_FRAME_WIDTH(f,val) ((f)->width = (val), (f)->window_width = FRAME_WINDOW_WIDTH_ARG (f, (f)->width)) #define FRAME_SCROLL_BARS(f) ((f)->scroll_bars) #define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars) #define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items) |
