Fix default target of motion events

* src/xwidget.c (xwidget_motion_or_crossing): Default to widget_osr
instead of its window (bug#51703).
This commit is contained in:
Po Lu 2021-11-09 08:24:45 +01:00 committed by Lars Ingebrigtsen
parent 104e90d936
commit 606d8ffe45

View file

@ -763,7 +763,7 @@ xwidget_motion_or_crossing (struct xwidget_view *view, const XEvent *event)
&x, &y);
if (!target)
target = model->widgetwindow_osr;
target = model->widget_osr;
xg_event->any.window = gtk_widget_get_window (target);
g_object_ref (xg_event->any.window); /* The window will be unrefed