diff options
author | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-02 18:00:00 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-02 18:25:09 +0200 |
commit | 11e94c406bb75c9a8990ce99489798411deb110c (patch) | |
tree | 3b4ab3f9f20284723ab6aef8dcf30f26bce5f73c | |
parent | 61d6408fdb26145e633e5d613d53fa8229e61b49 (diff) |
layer shell: only send unmap on close if mapped
-rw-r--r-- | types/wlr_layer_shell_v1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/types/wlr_layer_shell_v1.c b/types/wlr_layer_shell_v1.c index 46ab1e10..32e8b0bb 100644 --- a/types/wlr_layer_shell_v1.c +++ b/types/wlr_layer_shell_v1.c @@ -291,7 +291,9 @@ void wlr_layer_surface_v1_close(struct wlr_layer_surface_v1 *surface) { return; } surface->closed = true; - layer_surface_unmap(surface); + if (surface->mapped) { + layer_surface_unmap(surface); + } zwlr_layer_surface_v1_send_closed(surface->resource); } |