From b2875d7b19f250517b5ef0ce42b7eb9d0ebd9de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 7 Jun 2020 09:36:56 +0200 Subject: [PATCH] window: Add automatic titlebar before content widget Just like we do with explicitly set titlebars --- gtk/gtkwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index e6a1151ca3..206def4e89 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4312,7 +4312,7 @@ gtk_window_realize (GtkWidget *widget) gtk_widget_add_css_class (priv->titlebar, GTK_STYLE_CLASS_TITLEBAR); gtk_widget_add_css_class (priv->titlebar, "default-decoration"); - gtk_widget_set_parent (priv->titlebar, widget); + gtk_widget_insert_after (priv->titlebar, widget, NULL); priv->title_box = priv->titlebar; }