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 3104a7c545
commit 714038e0f4
No known key found for this signature in database
GPG key ID: D41E092CA43F1D8B

View file

@ -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;
}