summaryrefslogtreecommitdiff
path: root/src/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland')
-rw-r--r--src/wayland/shell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wayland/shell.c b/src/wayland/shell.c
index 10af712..4c1caad 100644
--- a/src/wayland/shell.c
+++ b/src/wayland/shell.c
@@ -311,7 +311,9 @@ static void toplevel_configure(void *data, struct xdg_toplevel *toplevel,
static void toplevel_close(void *data, struct xdg_toplevel *toplevel)
{
(void)toplevel;
- surface_fail(data);
+ struct wayland_surface *w = data;
+ if (w && w->cbs && w->cbs->close)
+ w->cbs->close(&w->base, w->ud);
}
static void toplevel_configure_bounds(void *data, struct xdg_toplevel *toplevel,