gtkmain: Avoid doubly propagation of enter/leave events from windowing

Crossing events are already generated when picking the new pointer position,
so we don't have to propagate the windowing crossing event as-is.
This commit is contained in:
Carlos Garnacho 2017-04-13 15:42:48 +02:00
parent f9924b7e3e
commit 5483b9db2d

View File

@ -1797,9 +1797,7 @@ gtk_main_do_event (GdkEvent *event)
case GDK_ENTER_NOTIFY:
case GDK_LEAVE_NOTIFY:
if (gtk_widget_is_sensitive (grab_widget) &&
!_gtk_propagate_captured_event (grab_widget, event, topmost_widget))
gtk_widget_event (grab_widget, event);
/* Crossing event propagation happens during picking */
break;
case GDK_DRAG_STATUS: