mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Make main properties be the pending state
This commit is contained in:
parent
59c9488701
commit
f9e6d703d2
9 changed files with 143 additions and 157 deletions
|
|
@ -915,10 +915,10 @@ void container_recursive_resize(struct sway_container *container,
|
|||
bool layout_match = true;
|
||||
wlr_log(L_DEBUG, "Resizing %p with amount: %f", container, amount);
|
||||
if (edge == RESIZE_EDGE_LEFT || edge == RESIZE_EDGE_RIGHT) {
|
||||
container->pending.swayc_width += amount;
|
||||
container->width += amount;
|
||||
layout_match = container->layout == L_HORIZ;
|
||||
} else if (edge == RESIZE_EDGE_TOP || edge == RESIZE_EDGE_BOTTOM) {
|
||||
container->pending.swayc_height += amount;
|
||||
container->height += amount;
|
||||
layout_match = container->layout == L_VERT;
|
||||
}
|
||||
if (container->children) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue