Add an accessor function needed for floating panes.

This commit is contained in:
nicm
2026-05-27 19:36:04 +00:00
parent ee67452772
commit bbe26df83d
2 changed files with 13 additions and 0 deletions

View File

@@ -454,6 +454,18 @@ window_pane_send_resize(struct window_pane *wp, u_int sx, u_int sy)
fatal("ioctl failed");
}
int
window_has_floating_panes(struct window *w)
{
struct window_pane *wp;
TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp->flags & PANE_FLOATING)
return (1);
}
return (0);
}
int
window_has_pane(struct window *w, struct window_pane *wp)
{