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:
parent
c5468ddf52
commit
29eef6de61
@ -410,6 +410,9 @@ clutter_wayland_handle_pointer_leave (void *data,
|
|||||||
ClutterStageCogl *stage_cogl;
|
ClutterStageCogl *stage_cogl;
|
||||||
ClutterEvent *event;
|
ClutterEvent *event;
|
||||||
|
|
||||||
|
if (surface == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!CLUTTER_IS_STAGE_COGL (wl_surface_get_user_data (surface)))
|
if (!CLUTTER_IS_STAGE_COGL (wl_surface_get_user_data (surface)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user