forked from AuroraMiddleware/gtk
widget: Revert the event translation change
This is a temporary revert to make menus work in the 3.96 release, until we land the popup surface work and port menus to it. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1755
This commit is contained in:
parent
73ff7baa1b
commit
c6a42e92bb
@ -5255,11 +5255,7 @@ _gtk_widget_captured_event (GtkWidget *widget,
|
||||
return TRUE;
|
||||
|
||||
event_copy = gdk_event_copy (event);
|
||||
if (!translate_event_coordinates (event_copy, widget))
|
||||
{
|
||||
g_object_unref (event_copy);
|
||||
return FALSE;
|
||||
}
|
||||
translate_event_coordinates (event_copy, widget);
|
||||
|
||||
return_val = gtk_widget_run_controllers (widget, event_copy, GTK_PHASE_CAPTURE);
|
||||
|
||||
@ -5361,11 +5357,7 @@ gtk_widget_event_internal (GtkWidget *widget,
|
||||
|
||||
event_copy = gdk_event_copy (event);
|
||||
|
||||
if (!translate_event_coordinates (event_copy, widget))
|
||||
{
|
||||
g_object_unref (event_copy);
|
||||
return FALSE;
|
||||
}
|
||||
translate_event_coordinates (event_copy, widget);
|
||||
|
||||
if (widget == gtk_get_event_target (event_copy))
|
||||
return_val |= gtk_widget_run_controllers (widget, event_copy, GTK_PHASE_TARGET);
|
||||
|
Loading…
Reference in New Issue
Block a user