forked from AuroraMiddleware/gtk
menu: Avoid an invalid read
This commit is contained in:
parent
d4e4904604
commit
58aa93be41
@ -1134,12 +1134,13 @@ gtk_menu_item_enter (GtkEventController *controller,
|
||||
|
||||
event = gtk_get_current_event (); /* FIXME controller event */
|
||||
|
||||
gdk_event_get_crossing_mode ((GdkEvent *)event, &mode);
|
||||
|
||||
if (mode == GDK_CROSSING_GTK_GRAB ||
|
||||
mode == GDK_CROSSING_GTK_UNGRAB ||
|
||||
mode == GDK_CROSSING_STATE_CHANGED)
|
||||
return;
|
||||
if (gdk_event_get_crossing_mode ((GdkEvent *)event, &mode))
|
||||
{
|
||||
if (mode == GDK_CROSSING_GTK_GRAB ||
|
||||
mode == GDK_CROSSING_GTK_UNGRAB ||
|
||||
mode == GDK_CROSSING_STATE_CHANGED)
|
||||
return;
|
||||
}
|
||||
|
||||
if (gdk_event_get_device ((GdkEvent*) event) ==
|
||||
gdk_event_get_source_device ((GdkEvent*) event))
|
||||
|
Loading…
Reference in New Issue
Block a user