mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Set alert flag for the current window if the session is unattached.
GitHub issues 1182 and 2299. From Eric Garver.
This commit is contained in:
parent
f08bfa7cd1
commit
d8b6560cbf
6
alerts.c
6
alerts.c
@ -200,7 +200,7 @@ alerts_check_bell(struct window *w)
|
||||
* not check WINLINK_BELL).
|
||||
*/
|
||||
s = wl->session;
|
||||
if (s->curw != wl) {
|
||||
if (s->curw != wl || s->attached == 0) {
|
||||
wl->flags |= WINLINK_BELL;
|
||||
server_status_session(s);
|
||||
}
|
||||
@ -236,7 +236,7 @@ alerts_check_activity(struct window *w)
|
||||
if (wl->flags & WINLINK_ACTIVITY)
|
||||
continue;
|
||||
s = wl->session;
|
||||
if (s->curw != wl) {
|
||||
if (s->curw != wl || s->attached == 0) {
|
||||
wl->flags |= WINLINK_ACTIVITY;
|
||||
server_status_session(s);
|
||||
}
|
||||
@ -272,7 +272,7 @@ alerts_check_silence(struct window *w)
|
||||
if (wl->flags & WINLINK_SILENCE)
|
||||
continue;
|
||||
s = wl->session;
|
||||
if (s->curw != wl) {
|
||||
if (s->curw != wl || s->attached == 0) {
|
||||
wl->flags |= WINLINK_SILENCE;
|
||||
server_status_session(s);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user