From 0306baf5341965f95342e3e4c65ea9c63a3f1d81 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Mon, 30 Dec 2019 22:23:17 -0700 Subject: [PATCH] Fix crash on unmap The complete type unsafety of wl_container_of strikes again. --- kiwmi/desktop/xdg_shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiwmi/desktop/xdg_shell.c b/kiwmi/desktop/xdg_shell.c index 37d5c29..2aa028b 100644 --- a/kiwmi/desktop/xdg_shell.c +++ b/kiwmi/desktop/xdg_shell.c @@ -25,7 +25,7 @@ xdg_surface_map_notify(struct wl_listener *listener, void *UNUSED(data)) static void xdg_surface_unmap_notify(struct wl_listener *listener, void *UNUSED(data)) { - struct kiwmi_view *view = wl_container_of(listener, view, map); + struct kiwmi_view *view = wl_container_of(listener, view, unmap); view->mapped = false; }