Use the right client for if -b.

This commit is contained in:
nicm 2019-07-17 17:49:23 +00:00
parent 9e7774bb96
commit f6a9f6b4ad

View File

@ -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++;