Add a define for flags meaning a client is not attached, and fix

unattached counter, reported by Thomas Sattler.
This commit is contained in:
nicm
2020-01-28 08:06:11 +00:00
parent 2c38e01b54
commit 24350879cd
4 changed files with 10 additions and 5 deletions

View File

@ -210,7 +210,7 @@ window_client_draw(__unused void *modedata, void *itemdata,
struct window_pane *wp;
u_int cx = s->cx, cy = s->cy, lines, at;
if (c->session == NULL || (c->flags & (CLIENT_DEAD|CLIENT_DETACHING)))
if (c->session == NULL || (c->flags & CLIENT_UNATTACHEDFLAGS))
return;
wp = c->session->curw->window->active;