version 1.129, 2020/04/13 07:25:33 |
version 1.130, 2020/04/13 08:26:27 |
|
|
static enum cmd_retval |
static enum cmd_retval |
cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) |
cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) |
{ |
{ |
struct args *args = self->args; |
struct args *args = cmd_get_args(self); |
int append = args_has(args, 'a'); |
int append = args_has(args, 'a'); |
struct cmd_find_state *fs = &item->target; |
struct cmd_find_state *fs = &item->target; |
struct client *c, *loop; |
struct client *c, *loop; |
|
|
int scope; |
int scope; |
struct style *sy; |
struct style *sy; |
|
|
window = (self->entry == &cmd_set_window_option_entry); |
window = (cmd_get_entry(self) == &cmd_set_window_option_entry); |
|
|
/* Expand argument. */ |
/* Expand argument. */ |
c = cmd_find_client(item, NULL, 1); |
c = cmd_find_client(item, NULL, 1); |
argument = format_single(item, args->argv[0], c, s, wl, NULL); |
argument = format_single(item, args->argv[0], c, s, wl, NULL); |
|
|
/* If set-hook -R, fire the hook straight away. */ |
/* If set-hook -R, fire the hook straight away. */ |
if (self->entry == &cmd_set_hook_entry && args_has(args, 'R')) { |
if (cmd_get_entry(self) == &cmd_set_hook_entry && args_has(args, 'R')) { |
notify_hook(item, argument); |
notify_hook(item, argument); |
free(argument); |
free(argument); |
return (CMD_RETURN_NORMAL); |
return (CMD_RETURN_NORMAL); |
|
|
struct options_entry *parent, const char *value) |
struct options_entry *parent, const char *value) |
{ |
{ |
const struct options_table_entry *oe; |
const struct options_table_entry *oe; |
struct args *args = self->args; |
struct args *args = cmd_get_args(self); |
int append = args_has(args, 'a'); |
int append = args_has(args, 'a'); |
struct options_entry *o; |
struct options_entry *o; |
long long number; |
long long number; |