diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-06-03 02:39:14 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-06-03 02:39:14 +0200 |
| commit | e1d3ce23eeab1a045364e1f6ce1a224d7c8e2b93 (patch) | |
| tree | 4c341a485cff94f4d598b510ac9859f88428da6f | |
| parent | 9d84eb90442f2a946c3de1da76143206a4caa443 (diff) | |
view: update_size should only update pending size
Updating the current size outside transactions lead to rendering
glitches during resizes.
| -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) { 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; |
