summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2013-09-03 12:24:20 +0100
committerRob Bradford <rob@linux.intel.com>2013-09-09 18:18:18 +0100
commita748aab0edc29e08596ed9b72929caeedfec9325 (patch)
tree2ef0b313da5b7ee4b48a30b0016324806716ae0d
parentd4ddabeaadaa6f56f87fddc73fb29683d2134487 (diff)
downloadclutter-a748aab0edc29e08596ed9b72929caeedfec9325.tar.gz
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
-rw-r--r--clutter/wayland/clutter-input-device-wayland.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clutter/wayland/clutter-input-device-wayland.c b/clutter/wayland/clutter-input-device-wayland.c
index 29c6caa5c..5ec343712 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;