mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Address review comments
This commit is contained in:
parent
1d68f9ecca
commit
61fabede14
7 changed files with 125 additions and 122 deletions
|
|
@ -261,7 +261,7 @@ void arrange_windows(struct sway_container *container,
|
|||
{
|
||||
container->width = width;
|
||||
container->height = height;
|
||||
view_set_size(container->sway_view,
|
||||
view_configure(container->sway_view, container->x, container->y,
|
||||
container->width, container->height);
|
||||
wlr_log(L_DEBUG, "Set view to %.f x %.f @ %.f, %.f",
|
||||
container->width, container->height,
|
||||
|
|
@ -322,7 +322,8 @@ static void apply_horiz_layout(struct sway_container *container,
|
|||
wlr_log(L_DEBUG,
|
||||
"Calculating arrangement for %p:%d (will scale %f by %f)",
|
||||
child, child->type, width, scale);
|
||||
view_set_position(child->sway_view, child_x, y);
|
||||
view_configure(child->sway_view, child_x, y, child->width,
|
||||
child->height);
|
||||
|
||||
if (i == end - 1) {
|
||||
double remaining_width = x + width - child_x;
|
||||
|
|
@ -373,7 +374,8 @@ void apply_vert_layout(struct sway_container *container,
|
|||
wlr_log(L_DEBUG,
|
||||
"Calculating arrangement for %p:%d (will scale %f by %f)",
|
||||
child, child->type, height, scale);
|
||||
view_set_position(child->sway_view, x, child_y);
|
||||
view_configure(child->sway_view, x, child_y, child->width,
|
||||
child->height);
|
||||
|
||||
if (i == end - 1) {
|
||||
double remaining_height = y + height - child_y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue