From 76d50125acd8c875e7b7af67b0c83988dae5d2b6 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 14 Oct 2026 14:57:45 +0100 Subject: [PATCH] Delete pane status redraw bit which we think is not needed now. --- screen-redraw.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/screen-redraw.c b/screen-redraw.c index f6ac500a9..09c8fc076 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -1243,32 +1243,6 @@ redraw_scroll_result(struct tty *tty, const struct tty_ctx *ctx, int failed) tty->scroll_failed = 1; } -#ifdef ENABLE_IMAGES -/* XXX not sure if they is needed */ -/* Record damage for every pane border-status row in a window. */ -static void -redraw_damage_window_pane_status(struct window *w) -{ - struct window_pane *wp; - u_int y; - int status; - - TAILQ_FOREACH(wp, &w->panes, entry) { - status = window_pane_get_pane_status(wp); - if (status == PANE_STATUS_TOP) { - if (wp->yoff == 0) - continue; - y = wp->yoff - 1; - } else if (status == PANE_STATUS_BOTTOM) - y = wp->yoff + wp->sy; - else - continue; - if (y < w->sy) - redraw_damage_window(w, 0, y, w->sx, 1); - } -} -#endif - /* Mark all cached redraw scenes as out of date. */ void redraw_invalidate_all_scenes(void) @@ -2036,14 +2010,6 @@ redraw_draw(struct client *c, struct window_pane *wp, int flags) image_redraw_finish(tty); #endif } -#ifdef ENABLE_IMAGES - if ((flags & REDRAW_PANE) && - (image_backend_get_flags(tty) & - (IMAGE_BACKEND_GRAPHICAL|IMAGE_BACKEND_CLIPPED)) == - IMAGE_BACKEND_GRAPHICAL) { - redraw_damage_window_pane_status(scene->w); - } -#endif if (flags & REDRAW_PANE) { if (wp != NULL)