mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
view set position
This commit is contained in:
parent
83b4c0648d
commit
8bdf3b1b02
6 changed files with 59 additions and 5 deletions
|
|
@ -215,8 +215,7 @@ static void apply_horiz_layout(swayc_t *container,
|
|||
sway_log(L_DEBUG,
|
||||
"Calculating arrangement for %p:%d (will scale %f by %f)",
|
||||
child, child->type, width, scale);
|
||||
child->x = child_x;
|
||||
child->y = y;
|
||||
child->sway_view->iface.set_position(child->sway_view, child_x, y);
|
||||
|
||||
if (i == end - 1) {
|
||||
double remaining_width = x + width - child_x;
|
||||
|
|
@ -266,8 +265,7 @@ void apply_vert_layout(swayc_t *container,
|
|||
sway_log(L_DEBUG,
|
||||
"Calculating arrangement for %p:%d (will scale %f by %f)",
|
||||
child, child->type, height, scale);
|
||||
child->x = x;
|
||||
child->y = child_y;
|
||||
child->sway_view->iface.set_position(child->sway_view, x, child_y);
|
||||
|
||||
if (i == end - 1) {
|
||||
double remaining_height = y + height - child_y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue