diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 5a58e893c6..64384b5604 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -297,6 +297,9 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) priv->titlebar_end_box = NULL; } + if (!priv->shows_wm_decorations) + return; + gtk_widget_style_get (GTK_WIDGET (window), "decoration-button-layout", &layout_desc, NULL);