aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-03-15 01:45:04 +0000
committerKarl Heuer1995-03-15 01:45:04 +0000
commit37ea66e171ad26ef47133cbb56376f9350f871f9 (patch)
tree318654f655c9b7e8848b68910414caf1d005f686 /src
parent30e13e562470bdbf36dacbf166b32c18491807df (diff)
downloademacs-37ea66e171ad26ef47133cbb56376f9350f871f9.tar.gz
emacs-37ea66e171ad26ef47133cbb56376f9350f871f9.zip
(struct frame): New member kboard.
(FRAME_KBOARD): Accessor macro for that member, replacing get_perdisplay.
Diffstat (limited to 'src')
-rw-r--r--src/frame.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h
index 3876ccb15c4..1de00dde65d 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -166,6 +166,13 @@ struct frame
166 it is defined in xterm.h. */ 166 it is defined in xterm.h. */
167 union display { struct x_display *x; int nothing; } display; 167 union display { struct x_display *x; int nothing; } display;
168 168
169#ifdef MULTI_KBOARD
170 /* A pointer to the kboard structure associated with this frame.
171 For termcap frames, this points to initial_kboard. For X frames,
172 it will be the same as display.x->display_info->kboard. */
173 KBOARD *kboard;
174#endif
175
169 /* Number of lines of menu bar. */ 176 /* Number of lines of menu bar. */
170 int menu_bar_lines; 177 int menu_bar_lines;
171 178
@@ -265,6 +272,12 @@ struct frame
265 int cost_calculation_baud_rate; 272 int cost_calculation_baud_rate;
266}; 273};
267 274
275#ifdef MULTI_KBOARD /* Note that MULTI_KBOARD implies MULTI_FRAME */
276#define FRAME_KBOARD(f) ((f)->kboard)
277#else
278#define FRAME_KBOARD(f) (&the_only_kboard)
279#endif
280
268#ifdef MULTI_FRAME 281#ifdef MULTI_FRAME
269 282
270typedef struct frame *FRAME_PTR; 283typedef struct frame *FRAME_PTR;