From f5e8d7a4e2563786769ef5e5ce50d7df0259dc10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 9 May 2017 08:32:06 +0200 Subject: [PATCH] window: Hide titlebox when undecorated We don't draw or size-allocate the titlebar when the window is fullscreen or undecorated, so reflect this by setting it to !child_visible. This can happen when changing the value of the decorated property while the window is shown. --- gtk/gtkwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index c9ca7faef6..9f6676c805 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -5806,7 +5806,8 @@ update_csd_visibility (GtkWindow *window) if (priv->title_box == NULL) return FALSE; - visible = !priv->fullscreen; + visible = !priv->fullscreen && + priv->decorated; gtk_widget_set_child_visible (priv->title_box, visible);