aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h
index e66fd9341c7..31f601737c8 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -544,6 +544,20 @@ typedef struct frame *FRAME_PTR;
544#define FRAME_WINDOW_P(f) (0) 544#define FRAME_WINDOW_P(f) (0)
545#endif 545#endif
546 546
547/* Return a pointer to the structure holding information about the
548 region of text, if any, that is currently shown in mouse-face on
549 frame F. We need to define two versions because a TTY-only build
550 does not have FRAME_X_DISPLAY_INFO. */
551#ifdef HAVE_WINDOW_SYSTEM
552# define MOUSE_HL_INFO(F) \
553 (FRAME_WINDOW_P(F) \
554 ? &(FRAME_X_DISPLAY_INFO(F)->mouse_highlight) \
555 : &(((F)->output_data.tty->display_info)->mouse_highlight))
556#else
557# define MOUSE_HL_INFO(F) \
558 (&(((F)->output_data.tty->display_info)->mouse_highlight))
559#endif
560
547/* Nonzero if frame F is still alive (not deleted). */ 561/* Nonzero if frame F is still alive (not deleted). */
548#define FRAME_LIVE_P(f) ((f)->terminal != 0) 562#define FRAME_LIVE_P(f) ((f)->terminal != 0)
549 563