scrolledwindow: Don't snapshot junction if we use indicators

The junction doesn't make sense when we use indicators, since the
scrollbars overlap anyway. Not snappshotting it anymore has no visual
effect since it's being drawn below the scrollbars anyway.
This commit is contained in:
Timm Bäder 2019-12-30 10:47:53 +01:00
parent c427c2b22a
commit 108aac9ee3

View File

@ -2801,7 +2801,8 @@ gtk_scrolled_window_snapshot (GtkWidget *widget,
GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
if (priv->hscrollbar_visible &&
priv->vscrollbar_visible)
priv->vscrollbar_visible &&
!priv->use_indicators)
gtk_scrolled_window_snapshot_scrollbars_junction (scrolled_window, snapshot);
GTK_WIDGET_CLASS (gtk_scrolled_window_parent_class)->snapshot (widget, snapshot);