=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/input.c,v retrieving revision 1.175 retrieving revision 1.176 diff -c -r1.175 -r1.176 *** src/usr.bin/tmux/input.c 2020/05/16 14:16:25 1.175 --- src/usr.bin/tmux/input.c 2020/05/16 15:01:31 1.176 *************** *** 1,4 **** ! /* $OpenBSD: input.c,v 1.175 2020/05/16 14:16:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: input.c,v 1.176 2020/05/16 15:01:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 1861,1868 **** case 0: case 2: screen_pop_title(sctx->s); ! if (wp != NULL) server_status_window(wp->window); break; } break; --- 1861,1870 ---- case 0: case 2: screen_pop_title(sctx->s); ! if (wp != NULL) { ! server_redraw_window_borders(wp->window); server_status_window(wp->window); + } break; } break; *************** *** 2253,2260 **** switch (option) { case 0: case 2: ! if (screen_set_title(sctx->s, p) && wp != NULL) ! server_status_window(ictx->wp->window); break; case 4: input_osc_4(ictx, p); --- 2255,2264 ---- switch (option) { case 0: case 2: ! if (screen_set_title(sctx->s, p) && wp != NULL) { ! server_redraw_window_borders(wp->window); ! server_status_window(wp->window); ! } break; case 4: input_osc_4(ictx, p); *************** *** 2262,2269 **** case 7: if (utf8_isvalid(p)) { screen_set_path(sctx->s, p); ! if (wp != NULL) server_status_window(wp->window); } break; case 10: --- 2266,2275 ---- case 7: if (utf8_isvalid(p)) { screen_set_path(sctx->s, p); ! if (wp != NULL) { ! server_redraw_window_borders(wp->window); server_status_window(wp->window); + } } break; case 10: *************** *** 2314,2321 **** return; log_debug("%s: \"%s\"", __func__, ictx->input_buf); ! if (screen_set_title(sctx->s, ictx->input_buf) && wp != NULL) server_status_window(wp->window); } /* Rename string started. */ --- 2320,2329 ---- return; log_debug("%s: \"%s\"", __func__, ictx->input_buf); ! if (screen_set_title(sctx->s, ictx->input_buf) && wp != NULL) { ! server_redraw_window_borders(wp->window); server_status_window(wp->window); + } } /* Rename string started. */ *************** *** 2355,2360 **** --- 2363,2369 ---- } window_set_name(wp->window, ictx->input_buf); options_set_number(wp->window->options, "automatic-rename", 0); + server_redraw_window_borders(wp->window); server_status_window(wp->window); } *************** *** 2486,2492 **** { struct window_pane *wp = ictx->wp; u_int r, g, b; - char tmp[16]; if (wp == NULL) return; --- 2495,2500 ---- *************** *** 2495,2503 **** if (!input_osc_parse_colour(p, &r, &g, &b)) goto bad; ! xsnprintf(tmp, sizeof tmp, "fg=#%02x%02x%02x", r, g, b); ! options_set_style(wp->options, "window-style", 1, tmp); ! options_set_style(wp->options, "window-active-style", 1, tmp); wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED); return; --- 2503,2509 ---- if (!input_osc_parse_colour(p, &r, &g, &b)) goto bad; ! wp->fg = colour_join_rgb(r, g, b); wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED); return; *************** *** 2512,2518 **** { struct window_pane *wp = ictx->wp; u_int r, g, b; - char tmp[16]; if (wp == NULL) return; --- 2518,2523 ---- *************** *** 2521,2529 **** if (!input_osc_parse_colour(p, &r, &g, &b)) goto bad; ! xsnprintf(tmp, sizeof tmp, "bg=#%02x%02x%02x", r, g, b); ! options_set_style(wp->options, "window-style", 1, tmp); ! options_set_style(wp->options, "window-active-style", 1, tmp); wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED); return; --- 2526,2532 ---- if (!input_osc_parse_colour(p, &r, &g, &b)) goto bad; ! wp->bg = colour_join_rgb(r, g, b); wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED); return;