From 52863f0fe963e23ef293cf39210d9bb5902cb991 Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Mon, 3 Aug 2026 10:49:41 +0100 Subject: [PATCH] Redraw images after pixel geometry changes A resize may temporarily leave the terminal cell pixel dimensions unknown while tmux queries the terminal. Schedule another client redraw when the pixel geometry response arrives so the graphical backend replaces the temporary text fallback. --- tty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 96a651de9..52830c3ae 100644 --- a/tty.c +++ b/tty.c @@ -168,8 +168,10 @@ tty_set_size(struct tty *tty, u_int sx, u_int sy, u_int xpixel, u_int ypixel) tty->xpixel = xpixel; tty->ypixel = ypixel; #ifdef ENABLE_IMAGES - if (geometry_changed) + if (geometry_changed) { image_tty_geometry_changed(tty); + server_redraw_client(tty->client); + } #endif }