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/xdg_shell.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/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index cbf16662..14880dcd 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c | |||
@@ -297,7 +297,7 @@ static void handle_commit(struct wl_listener *listener, void *data) { | |||
297 | desktop_damage_view(view); | 297 | desktop_damage_view(view); |
298 | memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); | 298 | memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); |
299 | if (container_is_floating(view->container)) { | 299 | if (container_is_floating(view->container)) { |
300 | view_update_size(view, new_geo.width, new_geo.height); | 300 | view_update_size(view); |
301 | transaction_commit_dirty(); | 301 | transaction_commit_dirty(); |
302 | transaction_notify_view_ready_immediately(view); | 302 | transaction_notify_view_ready_immediately(view); |
303 | } else { | 303 | } else { |