summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-12-06 22:51:02 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-12-06 22:51:02 +0000
commite26a351865a0d969b3f40ca3c14be7ff8d7533ad (patch)
tree4ac1f40063ffa767d37ecfe5019d2718635b502d /input.c
parentebd0eb4fb4790cbf289a0dace00e37fe866c9bf3 (diff)
Add an option to alert (monitor) for silence (lack of activity) in a
window. From Thomas Adam.
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input.c b/input.c
index f49591a7..4a964550 100644
--- a/input.c
+++ b/input.c
@@ -681,7 +681,9 @@ input_parse(struct window_pane *wp)
if (EVBUFFER_LENGTH(evb) == 0)
return;
+
wp->window->flags |= WINDOW_ACTIVITY;
+ wp->window->flags &= ~WINDOW_SILENCE;
/*
* Open the screen. Use NULL wp if there is a mode set as don't want to