diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-12-06 22:51:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-12-06 22:51:02 +0000 |
commit | e26a351865a0d969b3f40ca3c14be7ff8d7533ad (patch) | |
tree | 4ac1f40063ffa767d37ecfe5019d2718635b502d /tmux.h | |
parent | ebd0eb4fb4790cbf289a0dace00e37fe866c9bf3 (diff) |
Add an option to alert (monitor) for silence (lack of activity) in a
window. From Thomas Adam.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -830,6 +830,7 @@ TAILQ_HEAD(window_panes, window_pane); struct window { char *name; struct event name_timer; + struct timeval silence_timer; struct window_pane *active; struct window_pane *last; @@ -845,6 +846,7 @@ struct window { #define WINDOW_BELL 0x1 #define WINDOW_ACTIVITY 0x2 #define WINDOW_REDRAW 0x4 +#define WINDOW_SILENCE 0x8 struct options options; @@ -865,7 +867,9 @@ struct winlink { #define WINLINK_BELL 0x1 #define WINLINK_ACTIVITY 0x2 #define WINLINK_CONTENT 0x4 -#define WINLINK_ALERTFLAGS (WINLINK_BELL|WINLINK_ACTIVITY|WINLINK_CONTENT) +#define WINLINK_SILENCE 0x8 +#define WINLINK_ALERTFLAGS \ + (WINLINK_BELL|WINLINK_ACTIVITY|WINLINK_CONTENT|WINLINK_SILENCE) RB_ENTRY(winlink) entry; TAILQ_ENTRY(winlink) sentry; |