diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-06-03 02:39:14 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-03 16:41:17 +0200 |
commit | 4edd4290536f76e484cbbc33e218b031c3ec365e (patch) | |
tree | 4c341a485cff94f4d598b510ac9859f88428da6f /sway/tree/view.c | |
parent | view: Save all buffers associated with view (diff) | |
download | sway-4edd4290536f76e484cbbc33e218b031c3ec365e.tar.gz sway-4edd4290536f76e484cbbc33e218b031c3ec365e.tar.zst sway-4edd4290536f76e484cbbc33e218b031c3ec365e.zip |
view: update_size should only update pending size
Updating the current size outside transactions lead to rendering
glitches during resizes.
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 2 |
1 files changed, 0 insertions, 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) { | |||
730 | if (container_is_floating(con)) { | 730 | if (container_is_floating(con)) { |
731 | con->content_width = width; | 731 | con->content_width = width; |
732 | con->content_height = height; | 732 | con->content_height = height; |
733 | con->current.content_width = width; | ||
734 | con->current.content_height = height; | ||
735 | container_set_geometry_from_content(con); | 733 | container_set_geometry_from_content(con); |
736 | } else { | 734 | } else { |
737 | con->surface_x = con->content_x + (con->content_width - width) / 2; | 735 | con->surface_x = con->content_x + (con->content_width - width) / 2; |