]> git.eshelyaron.com Git - emacs.git/commitdiff
(struct frame): New member kboard.
authorKarl Heuer <kwzh@gnu.org>
Wed, 15 Mar 1995 01:45:04 +0000 (01:45 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 15 Mar 1995 01:45:04 +0000 (01:45 +0000)
(FRAME_KBOARD): Accessor macro for that member, replacing get_perdisplay.

src/frame.h

index 3876ccb15c4c233d4d093bea619fee0d49a6d267..1de00dde65dd99e21ac3114a75b55c26cac3d834 100644 (file)
@@ -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;