Fix crash on unmap

The complete type unsafety of wl_container_of strikes again.
This commit is contained in:
Tadeo Kondrak 2019-12-30 22:23:17 -07:00
parent 23a387a217
commit 0306baf534

View file

@ -25,7 +25,7 @@ xdg_surface_map_notify(struct wl_listener *listener, void *UNUSED(data))
static void static void
xdg_surface_unmap_notify(struct wl_listener *listener, void *UNUSED(data)) 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; view->mapped = false;
} }