diff options
-rw-r--r-- | sway/desktop/xwayland.c | 4 | ||||
-rw-r--r-- | sway/tree/view.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index ace290ef..b2874cfe 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -283,9 +283,7 @@ static void handle_commit(struct wl_listener *listener, void *data) { | |||
283 | if (view->swayc->instructions->length) { | 283 | if (view->swayc->instructions->length) { |
284 | transaction_notify_view_ready_by_size(view, | 284 | transaction_notify_view_ready_by_size(view, |
285 | surface_state->width, surface_state->height); | 285 | surface_state->width, surface_state->height); |
286 | } | 286 | } else if (container_is_floating(view->swayc)) { |
287 | |||
288 | if (container_is_floating(view->swayc)) { | ||
289 | view_update_size(view, surface_state->width, surface_state->height); | 287 | view_update_size(view, surface_state->width, surface_state->height); |
290 | } | 288 | } |
291 | 289 | ||
diff --git a/sway/tree/view.c b/sway/tree/view.c index bca8ef8a..e46cb327 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -574,6 +574,8 @@ void view_update_position(struct sway_view *view, double lx, double ly) { | |||
574 | container_damage_whole(view->swayc); | 574 | container_damage_whole(view->swayc); |
575 | view->x = lx; | 575 | view->x = lx; |
576 | view->y = ly; | 576 | view->y = ly; |
577 | view->swayc->current.view_x = lx; | ||
578 | view->swayc->current.view_y = ly; | ||
577 | if (container_is_floating(view->swayc)) { | 579 | if (container_is_floating(view->swayc)) { |
578 | container_set_geometry_from_floating_view(view->swayc); | 580 | container_set_geometry_from_floating_view(view->swayc); |
579 | } | 581 | } |
@@ -587,6 +589,8 @@ void view_update_size(struct sway_view *view, int width, int height) { | |||
587 | container_damage_whole(view->swayc); | 589 | container_damage_whole(view->swayc); |
588 | view->width = width; | 590 | view->width = width; |
589 | view->height = height; | 591 | view->height = height; |
592 | view->swayc->current.view_width = width; | ||
593 | view->swayc->current.view_height = height; | ||
590 | if (container_is_floating(view->swayc)) { | 594 | if (container_is_floating(view->swayc)) { |
591 | container_set_geometry_from_floating_view(view->swayc); | 595 | container_set_geometry_from_floating_view(view->swayc); |
592 | } | 596 | } |