aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-28 14:08:20 +0100
committeremersion <contact@emersion.fr>2018-11-28 14:08:20 +0100
commitb98563d2d7fd2481188c60c0dafc036a9ca4dd15 (patch)
tree4ce855c622235ebd43781329bfe0f620db81b3e2 /include/sway/tree
parentf737854e307a3cfeaba43f5ff18d540c23c65fa5 (diff)
Fix segfault when destroying unmapped child view
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/view.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index d74f1bc9..5cc9777b 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -195,6 +195,7 @@ struct sway_view_child {
struct sway_view *view;
struct wlr_surface *surface;
+ bool mapped;
struct wl_listener surface_commit;
struct wl_listener surface_new_subsurface;