diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-03-15 01:45:04 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-03-15 01:45:04 +0000 |
commit | 37ea66e171ad26ef47133cbb56376f9350f871f9 (patch) | |
tree | 318654f655c9b7e8848b68910414caf1d005f686 /src/frame.h | |
parent | 30e13e562470bdbf36dacbf166b32c18491807df (diff) | |
download | emacs-37ea66e171ad26ef47133cbb56376f9350f871f9.tar.gz |
(struct frame): New member kboard.
(FRAME_KBOARD): Accessor macro for that member, replacing get_perdisplay.
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 13 |
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 it is defined in xterm.h. */ union display { struct x_display *x; int nothing; } display; +#ifdef MULTI_KBOARD + /* A pointer to the kboard structure associated with this frame. + For termcap frames, this points to initial_kboard. For X frames, + it will be the same as display.x->display_info->kboard. */ + KBOARD *kboard; +#endif + /* Number of lines of menu bar. */ int menu_bar_lines; @@ -265,6 +272,12 @@ struct frame int cost_calculation_baud_rate; }; +#ifdef MULTI_KBOARD /* Note that MULTI_KBOARD implies MULTI_FRAME */ +#define FRAME_KBOARD(f) ((f)->kboard) +#else +#define FRAME_KBOARD(f) (&the_only_kboard) +#endif + #ifdef MULTI_FRAME typedef struct frame *FRAME_PTR; |