forked from AuroraMiddleware/gtk
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:
parent
f9924b7e3e
commit
5483b9db2d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user