Commit 37ea66e1 authored by Karl Heuer's avatar Karl Heuer
Browse files

(struct frame): New member kboard.

(FRAME_KBOARD): Accessor macro for that member, replacing get_perdisplay.
parent 30e13e56
......@@ -166,6 +166,13 @@ struct frame
it is defined in xterm.h. */
union display { struct x_display *x; int nothing; } display;
/* 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;
/* 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)
#define FRAME_KBOARD(f) (&the_only_kboard)
typedef struct frame *FRAME_PTR;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment