From 63a663516362646bd8e2a641c0aa0574f888cca3 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 8 Feb 2021 01:45:50 +0100 Subject: view: Read geometry directly in view_update_size --- sway/tree/view.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sway/tree/view.c') 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) { view->surface = NULL; } -void view_update_size(struct sway_view *view, int width, int height) { +void view_update_size(struct sway_view *view) { struct sway_container *con = view->container; - con->content_width = width; - con->content_height = height; + con->content_width = view->geometry.width; + con->content_height = view->geometry.height; container_set_geometry_from_content(con); } -- cgit v1.2.3-54-g00ecf