From 29eef6de61157db81a6fac4dca219c0c3f4b8ce8 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 3 Sep 2013 12:24:20 +0100 Subject: [PATCH] wayland: Check for NULL surface on pointer leave events In the protocol this is the expected behaviour when the client has destroyed the surface. https://bugzilla.gnome.org/show_bug.cgi?id=707377 --- clutter/wayland/clutter-input-device-wayland.c | 3 +++ 1 file changed, 3 insertions(+) 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;