aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frame.h5
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
167 /* Size of this frame, in units of characters. */ 167 /* Size of this frame, in units of characters. */
168 EMACS_INT height; 168 EMACS_INT height;
169 EMACS_INT width; 169 EMACS_INT width;
170 EMACS_INT window_width;
170 171
171 /* New height and width for pending size change. 0 if no change pending. */ 172 /* New height and width for pending size change. 0 if no change pending. */
172 int new_height, new_width; 173 int new_height, new_width;
@@ -381,8 +382,8 @@ typedef struct frame *FRAME_PTR;
381 : 0) 382 : 0)
382#define FRAME_WINDOW_WIDTH_ARG(f, width) \ 383#define FRAME_WINDOW_WIDTH_ARG(f, width) \
383 ((width) + FRAME_SCROLL_BAR_WIDTH (f)) 384 ((width) + FRAME_SCROLL_BAR_WIDTH (f))
384#define FRAME_WINDOW_WIDTH(f) ((f)->width + FRAME_SCROLL_BAR_WIDTH (f)) 385#define FRAME_WINDOW_WIDTH(f) ((f)->window_width)
385#define SET_FRAME_WIDTH(f,val) ((f)->width = (val)) 386#define SET_FRAME_WIDTH(f,val) ((f)->width = (val), (f)->window_width = FRAME_WINDOW_WIDTH_ARG (f, (f)->width))
386#define FRAME_SCROLL_BARS(f) ((f)->scroll_bars) 387#define FRAME_SCROLL_BARS(f) ((f)->scroll_bars)
387#define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars) 388#define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars)
388#define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items) 389#define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items)