From 6dd288d4590942457602a77cef4291c1774dfd8a Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Mon, 1 Jun 2026 20:20:42 +0100 Subject: [PATCH] Fix bug: pane-border-status top, can't resize floating panes by dragging the border. --- window.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/window.c b/window.c index ba7abafd..97fc7f88 100644 --- a/window.c +++ b/window.c @@ -658,16 +658,11 @@ window_get_active_at(struct window *w, u_int x, u_int y) continue; } } else { - /* Floating - include top or or left border. */ + /* Floating - include all borders. */ if ((int)x < xoff - 1 || x > xoff + sx) continue; - if (pane_status == PANE_STATUS_TOP) { - if ((int)y <= yoff - 2 || y > yoff + sy - 1) - continue; - } else { - if ((int)y < yoff - 1 || y > yoff + sy) - continue; - } + if ((int)y < yoff - 1 || y > yoff + sy) + continue; } return (wp); }