From 714038e0f4df4ac68d1ccf2275d328ee4d1f2992 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 be8b595..0afb6ab 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; }