mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
Merge branch 'obsd-master'
This commit is contained in:
12
window.c
12
window.c
@@ -461,6 +461,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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user