Commit 409760ba authored by Benjamin Otte's avatar Benjamin Otte
Browse files

container: Properly reorder no-window children

... that are setup with gtk_widget_set_parent_window().

Fixes scrollbars not being drawn in GtkScrolledWindow.
parent ab5dbfd1
......@@ -3564,9 +3564,9 @@ gtk_container_draw_forall (GtkWidget *widget,
info.child = widget;
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));
info.window_depth = g_list_index (siblings, window);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment