version 1.54, 2012/03/17 21:33:33 |
version 1.55, 2012/04/08 06:47:26 |
|
|
struct winlink *wl; |
struct winlink *wl; |
struct client *c; |
struct client *c; |
struct options *oo; |
struct options *oo; |
|
struct window *w; |
const char *optstr, *valstr; |
const char *optstr, *valstr; |
u_int i; |
u_int i; |
|
|
|
|
} else { |
} else { |
if (cmd_set_option_set(self, ctx, oe, oo, valstr) != 0) |
if (cmd_set_option_set(self, ctx, oe, oo, valstr) != 0) |
return (-1); |
return (-1); |
|
} |
|
|
|
/* Start or stop timers when automatic-rename changed. */ |
|
if (strcmp (oe->name, "automatic-rename") == 0) { |
|
for (i = 0; i < ARRAY_LENGTH(&windows); i++) { |
|
if ((w = ARRAY_ITEM(&windows, i)) == NULL) |
|
continue; |
|
if (options_get_number(&w->options, "automatic-rename")) |
|
queue_window_name(w); |
|
else if (event_initialized(&w->name_timer)) |
|
evtimer_del(&w->name_timer); |
|
} |
} |
} |
|
|
/* Update sizes and redraw. May not need it but meh. */ |
/* Update sizes and redraw. May not need it but meh. */ |