diff options
author | Antonin Décimo <antonin.decimo@gmail.com> | 2019-08-10 16:47:19 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-08-20 13:27:52 +0900 |
commit | 9e5664e9973015c6face5db134257d075fc0339b (patch) | |
tree | 660a6d87dba7ed52f6364df53a4818fdf41dae1b | |
parent | input: check pointer against nullptr (diff) | |
download | sway-9e5664e9973015c6face5db134257d075fc0339b.tar.gz sway-9e5664e9973015c6face5db134257d075fc0339b.tar.zst sway-9e5664e9973015c6face5db134257d075fc0339b.zip |
view_update_size: fix surface_width/height mismatch
-rw-r--r-- | sway/tree/view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index bb3ae707..0f35d970 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -709,7 +709,7 @@ void view_update_size(struct sway_view *view, int width, int height) { | |||
709 | con->surface_y = fmax(con->surface_y, con->content_y); | 709 | con->surface_y = fmax(con->surface_y, con->content_y); |
710 | } | 710 | } |
711 | con->surface_width = width; | 711 | con->surface_width = width; |
712 | con->surface_width = height; | 712 | con->surface_height = height; |
713 | } | 713 | } |
714 | 714 | ||
715 | static const struct sway_view_child_impl subsurface_impl; | 715 | static const struct sway_view_child_impl subsurface_impl; |