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.
This commit is contained in:
Timm Bäder 2017-05-09 08:32:06 +02:00 committed by Carlos Garnacho
parent 81cdc8713c
commit f5e8d7a4e2

View File

@ -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);