mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 18:38:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
cf688db4b5
16
alerts.c
16
alerts.c
@ -132,15 +132,15 @@ alerts_queue(struct window *w, int flags)
|
|||||||
if (!event_initialized(&w->alerts_timer))
|
if (!event_initialized(&w->alerts_timer))
|
||||||
evtimer_set(&w->alerts_timer, alerts_timer, w);
|
evtimer_set(&w->alerts_timer, alerts_timer, w);
|
||||||
|
|
||||||
if (w->flags & flags)
|
if (!alerts_fired) {
|
||||||
return;
|
w->flags |= flags;
|
||||||
w->flags |= flags;
|
log_debug("@%u alerts flags added %#x", w->id, flags);
|
||||||
log_debug("@%u alerts flags added %#x", w->id, flags);
|
|
||||||
|
|
||||||
if (!alerts_fired && alerts_enabled(w, flags)) {
|
if (alerts_enabled(w, flags)) {
|
||||||
log_debug("alerts check queued (by @%u)", w->id);
|
log_debug("alerts check queued (by @%u)", w->id);
|
||||||
event_once(-1, EV_TIMEOUT, alerts_callback, NULL, NULL);
|
event_once(-1, EV_TIMEOUT, alerts_callback, NULL, NULL);
|
||||||
alerts_fired = 1;
|
alerts_fired = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user