Fix bug: pane-border-status top, can't resize floating panes by dragging the border.

This commit is contained in:
Michael Grant
2026-06-01 20:20:42 +01:00
parent 68fdc4fcbe
commit 6dd288d459

View File

@@ -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);
}