From 93ae728cc63db3fa724d7079d4f05d9a99e11912 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 2 Feb 2015 12:58:56 +0100 Subject: [PATCH] scrolledwindow: Don't hide indicators if leaving towards a child In that case the scrolledwindow still gets events through the captured handler, and can thus still control visibility, so hiding the indicators in this case can only lead to flashing. --- gtk/gtkscrolledwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index bf1dbbac14..d469668d47 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -393,7 +393,7 @@ gtk_scrolled_window_leave_notify (GtkWidget *widget, { GtkScrolledWindowPrivate *priv = GTK_SCROLLED_WINDOW (widget)->priv; - if (priv->use_indicators) + if (priv->use_indicators && event->detail != GDK_NOTIFY_INFERIOR) { indicator_set_over (&priv->hindicator, FALSE); indicator_set_over (&priv->vindicator, FALSE);