diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-06-21 01:27:46 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-06-21 01:27:46 +0000 |
commit | e63f0546a166c442464c7d8500a74b38c036432a (patch) | |
tree | d087ac452070d41659c6e03dcb6d2f0e04079885 /server-fn.c | |
parent | 447a07e9f83297bf0ad5f973e67eb32488fc1b8d (diff) | |
download | rtmux-e63f0546a166c442464c7d8500a74b38c036432a.tar.gz rtmux-e63f0546a166c442464c7d8500a74b38c036432a.tar.bz2 rtmux-e63f0546a166c442464c7d8500a74b38c036432a.zip |
Having a list of winlinks->alerts for each session is stupid, just store
the alert flags directly in the winlink itself.
Diffstat (limited to 'server-fn.c')
-rw-r--r-- | server-fn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server-fn.c b/server-fn.c index 01e78ba2..da156e46 100644 --- a/server-fn.c +++ b/server-fn.c @@ -184,7 +184,7 @@ server_status_window(struct window *w) for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { s = ARRAY_ITEM(&sessions, i); - if (s != NULL && session_has(s, w)) + if (s != NULL && session_has(s, w) != NULL) server_status_session(s); } } @@ -249,7 +249,7 @@ server_kill_window(struct window *w) for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { s = ARRAY_ITEM(&sessions, i); - if (s == NULL || !session_has(s, w)) + if (s == NULL || session_has(s, w) == NULL) continue; while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) { if (session_detach(s, wl)) { @@ -286,7 +286,7 @@ server_link_window(struct session *src, struct winlink *srcwl, * Can't use session_detach as it will destroy session * if this makes it empty. */ - session_alert_cancel(dst, dstwl); + dstwl->flags &= ~WINLINK_ALERTFLAGS; winlink_stack_remove(&dst->lastw, dstwl); winlink_remove(&dst->windows, dstwl); |