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.
This commit is contained in:
Carlos Garnacho 2015-02-02 12:58:56 +01:00
parent e82d471c55
commit 93ae728cc6

View File

@ -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);