Fix segfault when destroying unmapped child view

This commit is contained in:
emersion 2018-11-28 14:08:20 +01:00
parent f737854e30
commit b98563d2d7
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 10 additions and 3 deletions

View file

@ -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;