summaryrefslogtreecommitdiff
path: root/src/wayland/shell.c
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-12 23:28:33 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-12 23:28:33 +0300
commitf6a42623ec1e3bc718ae685ddbb0be118364121e (patch)
treed1fdc33c0b433b2c1dffaffeac56be814f100b2b /src/wayland/shell.c
parent4ab6c6924f08fe64d594d099509924576d0f7ea2 (diff)
fix: prevent close stall on Wayland and ensure clean immediate shutdown on close
Diffstat (limited to 'src/wayland/shell.c')
-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,