diff options
author | emersion <contact@emersion.fr> | 2018-06-16 15:44:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-16 15:44:01 +0100 |
commit | ac0f9acb063262f00a949e9d43aa51c84cf1ea97 (patch) | |
tree | bd100206fd366e19bca3519cfdad9b92801a87f0 | |
parent | 8e33deb0beb033dd1ddff86d6a071b1a5faa8fdb (diff) | |
parent | 23707f65040546d4594e458ab5068c0bccc31bd0 (diff) |
Merge pull request #1066 from ammen99/master
layer-shell: check if the surface is mapped in layer_surface_destroy()
-rw-r--r-- | types/wlr_layer_shell.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/types/wlr_layer_shell.c b/types/wlr_layer_shell.c index e64d7937..76d6d721 100644 --- a/types/wlr_layer_shell.c +++ b/types/wlr_layer_shell.c @@ -176,7 +176,9 @@ static void layer_surface_unmap(struct wlr_layer_surface *surface) { } static void layer_surface_destroy(struct wlr_layer_surface *surface) { - layer_surface_unmap(surface); + if (surface->configured && surface->mapped) { + layer_surface_unmap(surface); + } wlr_signal_emit_safe(&surface->events.destroy, surface); wl_resource_set_user_data(surface->resource, NULL); wl_list_remove(&surface->surface_destroy_listener.link); |