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/tree/view.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/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 38417874..e62fd018 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -872,10 +872,10 @@ void view_unmap(struct sway_view *view) { | |||
872 | view->surface = NULL; | 872 | view->surface = NULL; |
873 | } | 873 | } |
874 | 874 | ||
875 | void view_update_size(struct sway_view *view, int width, int height) { | 875 | void view_update_size(struct sway_view *view) { |
876 | struct sway_container *con = view->container; | 876 | struct sway_container *con = view->container; |
877 | con->content_width = width; | 877 | con->content_width = view->geometry.width; |
878 | con->content_height = height; | 878 | con->content_height = view->geometry.height; |
879 | container_set_geometry_from_content(con); | 879 | container_set_geometry_from_content(con); |
880 | } | 880 | } |
881 | 881 | ||