Use the right client for if -b.

pull/1848/head
nicm 2019-07-17 17:49:23 +00:00
parent 9e7774bb96
commit f6a9f6b4ad
1 changed files with 4 additions and 1 deletions

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