diff options
author | nicm <nicm> | 2019-07-17 17:49:23 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-07-17 17:49:23 +0000 |
commit | f6a9f6b4ad139f46426ff308669b49a8dc25592e (patch) | |
tree | 3c07f093f3b76842a2e81b20c257d71bd6904e27 /cmd-if-shell.c | |
parent | 9e7774bb966f6f90270df8a0d16efb2b2a5ba860 (diff) | |
download | rtmux-f6a9f6b4ad139f46426ff308669b49a8dc25592e.tar.gz rtmux-f6a9f6b4ad139f46426ff308669b49a8dc25592e.tar.bz2 rtmux-f6a9f6b4ad139f46426ff308669b49a8dc25592e.zip |
Use the right client for if -b.
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r-- | cmd-if-shell.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c index a992602c..2befbc0c 100644 --- a/cmd-if-shell.c +++ b/cmd-if-shell.c @@ -121,7 +121,10 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item) cdata->cmd_else = NULL; memcpy(&cdata->mouse, m, sizeof cdata->mouse); - cdata->client = item->client; + if (!args_has(args, 'b')) + cdata->client = item->client; + else + cdata->client = c; if (cdata->client != NULL) cdata->client->references++; |