Fix crash on unmap
The complete type unsafety of wl_container_of strikes again.
This commit is contained in:
parent
3104a7c545
commit
714038e0f4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue