container: Properly reorder no-window children

... that are setup with gtk_widget_set_parent_window().

Fixes scrollbars not being drawn in GtkScrolledWindow.
This commit is contained in:
Benjamin Otte 2016-01-19 04:33:09 +01:00
parent ab5dbfd1f1
commit 409760babf

View File

@ -3564,9 +3564,9 @@ gtk_container_draw_forall (GtkWidget *widget,
{ {
info.child = widget; info.child = widget;
info.window_depth = G_MAXINT; info.window_depth = G_MAXINT;
if (_gtk_widget_get_has_window (widget)) window = _gtk_widget_get_window (widget);
if (window != gtk_widget_get_window (GTK_WIDGET (data->container)))
{ {
window = _gtk_widget_get_window (widget);
siblings = gdk_window_peek_children (gdk_window_get_parent (window)); siblings = gdk_window_peek_children (gdk_window_get_parent (window));
info.window_depth = g_list_index (siblings, window); info.window_depth = g_list_index (siblings, window);
} }