Redraw the client after an OSC 11 background change, GitHub issue 5752

from Ilya Pozdnyakov.
This commit is contained in:
nicm
2026-10-16 12:01:33 +00:00
committed by tmux update bot
parent 00bddc8893
commit 73e2683f6a

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: tty-keys.c,v 1.219 2026/10/14 13:03:47 nicm Exp $ */ /* $OpenBSD: tty-keys.c,v 1.220 2026/10/16 12:01:33 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1785,8 +1785,12 @@ tty_keys_colours1(struct tty *tty, const char *buf, size_t len, size_t *size,
n = tty_keys_colours(tty, buf, len, size, &tty->fg, &tty->bg); n = tty_keys_colours(tty, buf, len, size, &tty->fg, &tty->bg);
if (n == 0) { if (n == 0) {
if (tty->bg != bg) if (tty->bg != bg) {
server_client_update_theme_colours(c); server_client_update_theme_colours(c);
if (tty->flags & TTY_OPENED)
tty_invalidate(tty);
server_redraw_client(c);
}
session_theme_changed(c->session); session_theme_changed(c->session);
} }
return (n); return (n);