diff options
author | Timm Bäder <mail@baedert.org> | 2020-09-19 08:44:58 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-09-19 08:44:58 +0200 |
commit | 1d371db8d8e96d87a54c6d45f99c255a8e4a3061 (patch) | |
tree | 495b07bdadae04f3b2a3ae0468b49ceca20eb7ff /gtk/gtkscrolledwindow.c | |
parent | f938377464374705aa0a49493326d459f1f910a0 (diff) | |
download | gtk+-1d371db8d8e96d87a54c6d45f99c255a8e4a3061.tar.gz |
scrolledwindow: Ignore captured motion events if no child is set
Fixes #3173
Diffstat (limited to 'gtk/gtkscrolledwindow.c')
-rw-r--r-- | gtk/gtkscrolledwindow.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index fbc03039e4..2e24b21b38 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -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); |