mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Make view_update_* update live props as well
This commit is contained in:
parent
47d56306c3
commit
9a9d9116be
2 changed files with 5 additions and 3 deletions
|
|
@ -574,6 +574,8 @@ void view_update_position(struct sway_view *view, double lx, double ly) {
|
|||
container_damage_whole(view->swayc);
|
||||
view->x = lx;
|
||||
view->y = ly;
|
||||
view->swayc->current.view_x = lx;
|
||||
view->swayc->current.view_y = ly;
|
||||
if (container_is_floating(view->swayc)) {
|
||||
container_set_geometry_from_floating_view(view->swayc);
|
||||
}
|
||||
|
|
@ -587,6 +589,8 @@ void view_update_size(struct sway_view *view, int width, int height) {
|
|||
container_damage_whole(view->swayc);
|
||||
view->width = width;
|
||||
view->height = height;
|
||||
view->swayc->current.view_width = width;
|
||||
view->swayc->current.view_height = height;
|
||||
if (container_is_floating(view->swayc)) {
|
||||
container_set_geometry_from_floating_view(view->swayc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue