diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-27 17:54:57 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-27 17:54:57 +1000 |
commit | e6829c5991cac1bd164f800c14fccd522d702783 (patch) | |
tree | 74f48c0c81cfa64bd480195bddc47ada10812cc4 /sway/tree/view.c | |
parent | Fix memleak in container_get_box (diff) | |
download | sway-e6829c5991cac1bd164f800c14fccd522d702783.tar.gz sway-e6829c5991cac1bd164f800c14fccd522d702783.tar.zst sway-e6829c5991cac1bd164f800c14fccd522d702783.zip |
Move unsetting of view->surface into view_unmap
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 68d2a029..9f85bac0 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -555,6 +555,7 @@ void view_unmap(struct sway_view *view) { | |||
555 | struct sway_container *parent = container_destroy(view->swayc); | 555 | struct sway_container *parent = container_destroy(view->swayc); |
556 | arrange_and_commit(parent); | 556 | arrange_and_commit(parent); |
557 | } | 557 | } |
558 | view->surface = NULL; | ||
558 | } | 559 | } |
559 | 560 | ||
560 | void view_update_position(struct sway_view *view, double lx, double ly) { | 561 | void view_update_position(struct sway_view *view, double lx, double ly) { |