forked from AuroraMiddleware/gtk
GtkPaned: Make sure the raise the handle window above children
We need to show child windows and handle in the right order, otherwise the input-only handle window ends up under the children where it is useless.
This commit is contained in:
parent
77cb6d8b4a
commit
e7b3d8b414
@ -1638,15 +1638,15 @@ gtk_paned_map (GtkWidget *widget)
|
||||
GtkPaned *paned = GTK_PANED (widget);
|
||||
GtkPanedPrivate *priv = paned->priv;
|
||||
|
||||
if (priv->child1 && gtk_widget_get_visible (priv->child1) &&
|
||||
priv->child2 && gtk_widget_get_visible (priv->child2))
|
||||
gdk_window_show (priv->handle);
|
||||
|
||||
if (priv->child1 && gtk_widget_get_visible (priv->child1) && gtk_widget_get_child_visible (priv->child1))
|
||||
gdk_window_show (priv->child1_window);
|
||||
if (priv->child2 && gtk_widget_get_visible (priv->child2) && gtk_widget_get_child_visible (priv->child2))
|
||||
gdk_window_show (priv->child2_window);
|
||||
|
||||
if (priv->child1 && gtk_widget_get_visible (priv->child1) &&
|
||||
priv->child2 && gtk_widget_get_visible (priv->child2))
|
||||
gdk_window_show (priv->handle);
|
||||
|
||||
GTK_WIDGET_CLASS (gtk_paned_parent_class)->map (widget);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user