mirror of
https://github.com/tmux/tmux.git
synced 2026-10-09 11:44:23 +00:00
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:
12
window.c
12
window.c
@@ -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>
|
* 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);
|
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) {
|
if (pane_status == PANE_STATUS_TOP) {
|
||||||
/*
|
/*
|
||||||
* Prefer a pane's top border status line over the pane above's
|
* Prefer a pane's top border status line over the pane above's
|
||||||
|
|||||||
Reference in New Issue
Block a user