Sync OpenBSD patchset 1144:

Clear flags across all sessions, from Thomas Adam.
This commit is contained in:
Tiago Cunha
2012-07-11 17:06:11 +00:00
parent f040bc249f
commit 38530de622
4 changed files with 41 additions and 7 deletions

View File

@@ -352,7 +352,7 @@ session_next(struct session *s, int alert)
winlink_stack_remove(&s->lastw, wl);
winlink_stack_push(&s->lastw, s->curw);
s->curw = wl;
wl->flags &= ~WINLINK_ALERTFLAGS;
winlink_clear_flags(wl);
return (0);
}
@@ -389,7 +389,7 @@ session_previous(struct session *s, int alert)
winlink_stack_remove(&s->lastw, wl);
winlink_stack_push(&s->lastw, s->curw);
s->curw = wl;
wl->flags &= ~WINLINK_ALERTFLAGS;
winlink_clear_flags(wl);
return (0);
}
@@ -407,7 +407,7 @@ session_select(struct session *s, int idx)
winlink_stack_remove(&s->lastw, wl);
winlink_stack_push(&s->lastw, s->curw);
s->curw = wl;
wl->flags &= ~WINLINK_ALERTFLAGS;
winlink_clear_flags(wl);
return (0);
}
@@ -426,7 +426,7 @@ session_last(struct session *s)
winlink_stack_remove(&s->lastw, wl);
winlink_stack_push(&s->lastw, s->curw);
s->curw = wl;
wl->flags &= ~WINLINK_ALERTFLAGS;
winlink_clear_flags(wl);
return (0);
}