Fix dragging a floating pane by its top border over a tiled pane's

status line, GitHub issue 5645 from Michael Grant.
This commit is contained in:
nicm
2026-09-28 10:25:43 +00:00
committed by tmux update bot
parent bbecdc802f
commit a16e62849d

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: window.c,v 1.381 2026/09/28 10:10:16 nicm Exp $ */
/* $OpenBSD: window.c,v 1.382 2026/09/28 10:25:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -844,6 +844,16 @@ window_get_active_at(struct window *w, u_int x, u_int y)
return (NULL);
}
/*
* A floating pane is above every tiled pane, including their status
* lines, so check those first.
*/
TAILQ_FOREACH(wp, &w->z_index, zentry) {
if (window_pane_is_floating(wp) &&
window_pane_contains(wp, x, y))
return (wp);
}
if (pane_status == PANE_STATUS_TOP) {
/*
* Prefer a pane's top border status line over the pane above's