From 4edd4290536f76e484cbbc33e218b031c3ec365e Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Wed, 3 Jun 2020 02:39:14 +0200 Subject: view: update_size should only update pending size Updating the current size outside transactions lead to rendering glitches during resizes. --- sway/tree/view.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sway/tree/view.c b/sway/tree/view.c index 25951deb..711ab7aa 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -730,8 +730,6 @@ void view_update_size(struct sway_view *view, int width, int height) { if (container_is_floating(con)) { con->content_width = width; con->content_height = height; - con->current.content_width = width; - con->current.content_height = height; container_set_geometry_from_content(con); } else { con->surface_x = con->content_x + (con->content_width - width) / 2; -- cgit v1.2.3