From 3a4f765a51fd7cf98d655dc5a63746a6121d0212 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 6 Dec 2010 22:52:21 +0000 Subject: Add an option to alert (monitor) for silence (lack of activity) in a window. From Thomas Adam. --- input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'input.c') diff --git a/input.c b/input.c index d16b615c..5a373899 100644 --- a/input.c +++ b/input.c @@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.109 2010-04-18 15:11:47 tcunha Exp $ */ +/* $Id: input.c,v 1.110 2010-12-06 22:52:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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 -- cgit v1.2.3