scrolledwindow: Ignore captured motion events if no child is set

Fixes #3173
This commit is contained in:
Timm Bäder 2020-09-19 08:44:58 +02:00
parent f938377464
commit 1d371db8d8

View File

@ -1250,6 +1250,9 @@ captured_motion (GtkEventController *controller,
if (!priv->use_indicators)
return;
if (!priv->child)
return;
target = gtk_event_controller_get_target (controller);
state = gtk_event_controller_get_current_event_state (controller);
event = gtk_event_controller_get_current_event (controller);