mirror of
https://github.com/swaywm/sway.git
synced 2026-04-19 06:46:40 -04:00
fix: container state stacked and tabbed position and size
This commit is contained in:
parent
845cdb190f
commit
6101ca3ca3
1 changed files with 3 additions and 3 deletions
|
|
@ -188,7 +188,7 @@ static void apply_tabbed_layout(list_t *children, struct wlr_box *parent) {
|
||||||
}
|
}
|
||||||
for (int i = 0; i < children->length; ++i) {
|
for (int i = 0; i < children->length; ++i) {
|
||||||
struct sway_container *child = children->items[i];
|
struct sway_container *child = children->items[i];
|
||||||
int parent_offset = child->view ? 0 : container_titlebar_height();
|
int parent_offset = child->view ? container_titlebar_height() : 0;
|
||||||
child->pending.x = parent->x;
|
child->pending.x = parent->x;
|
||||||
child->pending.y = parent->y + parent_offset;
|
child->pending.y = parent->y + parent_offset;
|
||||||
child->pending.width = parent->width;
|
child->pending.width = parent->width;
|
||||||
|
|
@ -202,8 +202,8 @@ static void apply_stacked_layout(list_t *children, struct wlr_box *parent) {
|
||||||
}
|
}
|
||||||
for (int i = 0; i < children->length; ++i) {
|
for (int i = 0; i < children->length; ++i) {
|
||||||
struct sway_container *child = children->items[i];
|
struct sway_container *child = children->items[i];
|
||||||
int parent_offset = child->view ? 0 :
|
int parent_offset = child->view ?
|
||||||
container_titlebar_height() * children->length;
|
container_titlebar_height() * children->length : 0;
|
||||||
child->pending.x = parent->x;
|
child->pending.x = parent->x;
|
||||||
child->pending.y = parent->y + parent_offset;
|
child->pending.y = parent->y + parent_offset;
|
||||||
child->pending.width = parent->width;
|
child->pending.width = parent->width;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue