diff options
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index 5e3ee68942a..635a5ed7be4 100644 --- a/src/frame.h +++ b/src/frame.h @@ -309,6 +309,9 @@ struct frame ENUM_BF (output_method) output_method : 3; #ifdef HAVE_WINDOW_SYSTEM + /* True if this frame is a tooltip frame. */ + bool_bf tooltip : 1; + /* See FULLSCREEN_ enum on top. */ ENUM_BF (fullscreen_type) want_fullscreen : 4; @@ -861,6 +864,9 @@ default_pixels_per_inch_y (void) #define FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT(f) \ ((f)->vertical_scroll_bar_type == vertical_scroll_bar_right) +/* Whether F is a tooltip frame. */ +#define FRAME_TOOLTIP_P(f) ((f)->tooltip) + #else /* not HAVE_WINDOW_SYSTEM */ /* If there is no window system, there are no scroll bars. */ @@ -869,6 +875,9 @@ default_pixels_per_inch_y (void) #define FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT(f) ((void) f, 0) #define FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT(f) ((void) f, 0) +/* If there is no window system, there are no tooltips. */ +#define FRAME_TOOLTIP_P(f) ((void) f, 0) + #endif /* HAVE_WINDOW_SYSTEM */ /* Whether horizontal scroll bars are currently enabled for frame F. */ |