diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-04 17:54:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-04 17:54:27 +0000 |
commit | 0f95671fe3628671ddc43a960bd69f867799d00a (patch) | |
tree | affc07f0cee6074fc57afd124bb62e43d1bbc0c7 /server.c | |
parent | 14b951254674c75d8422a8ac5f320a54d1dd8a48 (diff) | |
download | rtmux-0f95671fe3628671ddc43a960bd69f867799d00a.tar.gz rtmux-0f95671fe3628671ddc43a960bd69f867799d00a.tar.bz2 rtmux-0f95671fe3628671ddc43a960bd69f867799d00a.zip |
Disable/enable window activity monitoring with set-window-option command.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.52 2008-06-04 16:46:23 nicm Exp $ */ +/* $Id: server.c,v 1.53 2008-06-04 17:54:26 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -419,7 +419,7 @@ server_handle_window(struct window *w) window_parse(w); - if (!(w->flags & (WINDOW_BELL|WINDOW_ACTIVITY))) + if (!(w->flags & WINDOW_BELL) && !(w->flags & WINDOW_ACTIVITY)) return; for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { @@ -443,7 +443,7 @@ server_handle_window(struct window *w) } } - if (w->flags & WINDOW_ACTIVITY) + if ((w->flags & WINDOW_MONITOR) && (w->flags & WINDOW_ACTIVITY)) session_alert_add(s, w, WINDOW_ACTIVITY); } server_status_window(w); |