Avoid warnings on leave-event for widgets tracking hover
ClutterCrossingEvent->related can be NULL if the pointer is not under any actor. Unconditionally set hover to FALSE in that case. https://bugzilla.gnome.org/show_bug.cgi?id=633028
This commit is contained in:
parent
bc22109130
commit
a915af4b30
@ -594,7 +594,7 @@ st_widget_leave (ClutterActor *actor,
|
||||
|
||||
if (priv->track_hover)
|
||||
{
|
||||
if (!clutter_actor_contains (actor, event->related))
|
||||
if (!event->related || !clutter_actor_contains (actor, event->related))
|
||||
st_widget_set_hover (ST_WIDGET (actor), FALSE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user