diff options
author | Kenny Levinsen <kl@kl.wtf> | 2021-02-08 01:45:50 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-09 09:37:10 +0100 |
commit | 63a663516362646bd8e2a641c0aa0574f888cca3 (patch) | |
tree | 2df58443a0a67a0415514fe1b80b178fb77f963d /sway/desktop/xwayland.c | |
parent | shells: Align geometry change commit handling (diff) | |
download | sway-63a663516362646bd8e2a641c0aa0574f888cca3.tar.gz sway-63a663516362646bd8e2a641c0aa0574f888cca3.tar.zst sway-63a663516362646bd8e2a641c0aa0574f888cca3.zip |
view: Read geometry directly in view_update_size
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 8b39cf50..4cd5f9d0 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -412,7 +412,7 @@ static void handle_commit(struct wl_listener *listener, void *data) { | |||
412 | desktop_damage_view(view); | 412 | desktop_damage_view(view); |
413 | memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); | 413 | memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); |
414 | if (container_is_floating(view->container)) { | 414 | if (container_is_floating(view->container)) { |
415 | view_update_size(view, new_geo.width, new_geo.height); | 415 | view_update_size(view); |
416 | transaction_commit_dirty(); | 416 | transaction_commit_dirty(); |
417 | } else { | 417 | } else { |
418 | view_center_surface(view); | 418 | view_center_surface(view); |