diff --git a/screen-redraw.c b/screen-redraw.c index 3fa537a4..ae9d8a90 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -212,14 +212,14 @@ screen_redraw_cell_border(struct client *c, u_int px, u_int py, int pane_status) struct window *w = c->session->curw->window; struct window_pane *wp; - /* On the window border? */ - if (px == w->sx || py == w->sy) - return (1); - /* Outside the window? */ if (px > w->sx || py > w->sy) return (0); + /* On the window border? */ + if (px == w->sx || py == w->sy) + return (1); + /* Check all the panes. */ TAILQ_FOREACH(wp, &w->panes, entry) { if (!window_pane_visible(wp))