mirror of
https://github.com/tmux/tmux.git
synced 2026-06-04 00:56:17 +00:00
Move the PANE_FLOATING flag into the layout cell and add an accessor.
From Dane Jensen.
This commit is contained in:
@@ -69,7 +69,7 @@ layout_dump(struct window *w, struct layout_cell *root)
|
||||
return (NULL);
|
||||
|
||||
TAILQ_FOREACH(wp, &w->z_index, zentry) {
|
||||
if (~wp->flags & PANE_FLOATING)
|
||||
if (!window_pane_is_floating(wp))
|
||||
break;
|
||||
if (!bracket) {
|
||||
strlcat(layout, "<", sizeof layout);
|
||||
@@ -307,7 +307,7 @@ layout_assign(struct window_pane **wp, struct layout_cell *lc, int flags)
|
||||
switch (lc->type) {
|
||||
case LAYOUT_WINDOWPANE:
|
||||
layout_make_leaf(lc, *wp);
|
||||
(*wp)->flags |= flags;
|
||||
lc->flags |= flags;
|
||||
*wp = TAILQ_NEXT(*wp, entry);
|
||||
return;
|
||||
case LAYOUT_LEFTRIGHT:
|
||||
|
||||
Reference in New Issue
Block a user