diff options
author | emersion <contact@emersion.fr> | 2018-02-03 16:43:31 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-02-03 16:43:31 +0100 |
commit | 1842487d61ad6ee39369b5321b363941596a3bf6 (patch) | |
tree | 3ccb9c9bd67d30e7efa423b3e029d52cc9509cde | |
parent | 6ba36cc52f83db2d21ef3e2fcb5b3dbf37c4d78e (diff) |
rootston: fix crash when closing a fullscreened xwayland view
-rw-r--r-- | rootston/xwayland.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rootston/xwayland.c b/rootston/xwayland.c index a3e12d00..36be9793 100644 --- a/rootston/xwayland.c +++ b/rootston/xwayland.c @@ -267,6 +267,12 @@ static void handle_unmap_notify(struct wl_listener *listener, void *data) { child->destroy(child); } + if (view->fullscreen_output != NULL) { + output_damage_whole(view->fullscreen_output); + view->fullscreen_output->fullscreen_view = NULL; + view->fullscreen_output = NULL; + } + view->wlr_surface = NULL; view->width = view->height = 0; wl_list_remove(&view->link); |