diff --git a/clutter/wayland/clutter-input-device-wayland.c b/clutter/wayland/clutter-input-device-wayland.c index 05331d974..60920c974 100644 --- a/clutter/wayland/clutter-input-device-wayland.c +++ b/clutter/wayland/clutter-input-device-wayland.c @@ -410,6 +410,9 @@ clutter_wayland_handle_pointer_leave (void *data, ClutterStageCogl *stage_cogl; ClutterEvent *event; + if (surface == NULL) + return; + if (!CLUTTER_IS_STAGE_COGL (wl_surface_get_user_data (surface))) return;