1
0
Fork 0

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
This commit is contained in:
Rob Bradford 2013-09-03 12:24:20 +01:00
parent c5468ddf52
commit 29eef6de61

View file

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