summaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/frame.h b/src/frame.h
index 72c0f6be2d7..31f601737c8 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -546,11 +546,17 @@ typedef struct frame *FRAME_PTR;
/* Return a pointer to the structure holding information about the
region of text, if any, that is currently shown in mouse-face on
- frame F. */
-#define MOUSE_HL_INFO(F) \
- (FRAME_WINDOW_P(F) \
- ? &(FRAME_X_DISPLAY_INFO(F)->mouse_highlight) \
- : &(((F)->output_data.tty->display_info)->mouse_highlight))
+ frame F. We need to define two versions because a TTY-only build
+ does not have FRAME_X_DISPLAY_INFO. */
+#ifdef HAVE_WINDOW_SYSTEM
+# define MOUSE_HL_INFO(F) \
+ (FRAME_WINDOW_P(F) \
+ ? &(FRAME_X_DISPLAY_INFO(F)->mouse_highlight) \
+ : &(((F)->output_data.tty->display_info)->mouse_highlight))
+#else
+# define MOUSE_HL_INFO(F) \
+ (&(((F)->output_data.tty->display_info)->mouse_highlight))
+#endif
/* Nonzero if frame F is still alive (not deleted). */
#define FRAME_LIVE_P(f) ((f)->terminal != 0)