From 94f6f3b1259bc8cea459b5648212e4caccdfa889 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 285c314ac..329f6ab37 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 }