mirror of
https://github.com/tmux/tmux.git
synced 2026-06-20 17:25:57 +00:00
FIx a couple of minor errors in use of layout_cell_is_tiled.
This commit is contained in:
10
layout.c
10
layout.c
@@ -635,7 +635,7 @@ layout_destroy_cell(struct window *w, struct layout_cell *lc,
|
|||||||
|
|
||||||
lc->parent = lcparent->parent;
|
lc->parent = lcparent->parent;
|
||||||
if (lc->parent == NULL) {
|
if (lc->parent == NULL) {
|
||||||
if (!layout_cell_is_tiled(lc)) {
|
if (layout_cell_is_tiled(lc)) {
|
||||||
lc->xoff = 0;
|
lc->xoff = 0;
|
||||||
lc->yoff = 0;
|
lc->yoff = 0;
|
||||||
}
|
}
|
||||||
@@ -1062,8 +1062,8 @@ layout_resize_child_cells(struct window *w, struct layout_cell *lc)
|
|||||||
count = 0;
|
count = 0;
|
||||||
previous = 0;
|
previous = 0;
|
||||||
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
|
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
|
||||||
if (!layout_cell_is_tiled(lc) &&
|
if (!layout_cell_is_tiled(lcchild) &&
|
||||||
!layout_cell_has_tiled_child(lc))
|
!layout_cell_has_tiled_child(lcchild))
|
||||||
continue;
|
continue;
|
||||||
count++;
|
count++;
|
||||||
if (lc->type == LAYOUT_LEFTRIGHT)
|
if (lc->type == LAYOUT_LEFTRIGHT)
|
||||||
@@ -1083,8 +1083,8 @@ layout_resize_child_cells(struct window *w, struct layout_cell *lc)
|
|||||||
/* Resize children into the new size. */
|
/* Resize children into the new size. */
|
||||||
idx = 0;
|
idx = 0;
|
||||||
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
|
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
|
||||||
if (!layout_cell_is_tiled(lc) &&
|
if (!layout_cell_is_tiled(lcchild) &&
|
||||||
!layout_cell_has_tiled_child(lc))
|
!layout_cell_has_tiled_child(lcchild))
|
||||||
continue;
|
continue;
|
||||||
if (lc->type == LAYOUT_TOPBOTTOM) {
|
if (lc->type == LAYOUT_TOPBOTTOM) {
|
||||||
lcchild->sx = lc->sx;
|
lcchild->sx = lc->sx;
|
||||||
|
|||||||
Reference in New Issue
Block a user