version 1.23, 2017/01/10 19:45:55 |
version 1.24, 2017/04/22 10:22:39 |
|
|
.args = { "C:St:", 0, 0 }, |
.args = { "C:St:", 0, 0 }, |
.usage = "[-S] [-C size] " CMD_TARGET_CLIENT_USAGE, |
.usage = "[-S] [-C size] " CMD_TARGET_CLIENT_USAGE, |
|
|
.tflag = CMD_CLIENT, |
|
|
|
.flags = CMD_AFTERHOOK, |
.flags = CMD_AFTERHOOK, |
.exec = cmd_refresh_client_exec |
.exec = cmd_refresh_client_exec |
}; |
}; |
|
|
cmd_refresh_client_exec(struct cmd *self, struct cmdq_item *item) |
cmd_refresh_client_exec(struct cmd *self, struct cmdq_item *item) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
struct client *c = item->state.c; |
struct client *c; |
const char *size; |
const char *size; |
u_int w, h; |
u_int w, h; |
|
|
|
if ((c = cmd_find_client(item, args_get(args, 't'), 0)) == NULL) |
|
return (CMD_RETURN_ERROR); |
|
|
if (args_has(args, 'C')) { |
if (args_has(args, 'C')) { |
if ((size = args_get(args, 'C')) == NULL) { |
if ((size = args_get(args, 'C')) == NULL) { |