diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-10-07 10:01:10 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-10-07 10:01:10 +0100 |
commit | fed7b29c7e4995eb60ad765c4ff9439f68261c83 (patch) | |
tree | b27293999c7df89ed14984abe9e532b6b4e135f4 /window.c | |
parent | 537441742836b4366c47ad60c19e04463bfd02e3 (diff) | |
parent | 5f63181ed5a9d409fcb0955217fbe4c1a40dd9ff (diff) | |
download | rtmux-fed7b29c7e4995eb60ad765c4ff9439f68261c83.tar.gz rtmux-fed7b29c7e4995eb60ad765c4ff9439f68261c83.tar.bz2 rtmux-fed7b29c7e4995eb60ad765c4ff9439f68261c83.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1537,7 +1537,7 @@ window_pane_input_callback(struct client *c, __unused const char *path, size_t len = EVBUFFER_LENGTH(buffer); wp = window_pane_find_by_id(cdata->wp); - if (wp == NULL || closed || error != 0 || c->flags & CLIENT_DEAD) { + if (wp == NULL || closed || error != 0 || (c->flags & CLIENT_DEAD)) { if (wp == NULL) c->flags |= CLIENT_EXIT; @@ -1563,6 +1563,10 @@ window_pane_start_input(struct window_pane *wp, struct cmdq_item *item, *cause = xstrdup("pane is not empty"); return (-1); } + if (c->flags & (CLIENT_DEAD|CLIENT_EXITED)) + return (1); + if (c->session != NULL) + return (1); cdata = xmalloc(sizeof *cdata); cdata->item = item; |