diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-12-06 22:51:03 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-12-06 22:51:03 +0000 |
commit | 4e7753a7c93fd4040819da3289b11454d51ad050 (patch) | |
tree | dd9a78983fa764e5d157c268b9e79f9bbf54fb0e /usr.bin/tmux/input.c | |
parent | a423496f78d0cebee4c5c099ad2646d3a78ff800 (diff) |
Add an option to alert (monitor) for silence (lack of activity) in a
window. From Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index e8a2c1867ce..5cf6755cbd3 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.29 2010/04/17 23:31:09 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.30 2010/12/06 22:51:02 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 |