aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c6
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
875void view_update_size(struct sway_view *view, int width, int height) { 875void 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