diff options
author | Timm Bäder <mail@baedert.org> | 2017-05-09 08:32:06 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-05-25 16:25:59 +0200 |
commit | f5e8d7a4e2563786769ef5e5ce50d7df0259dc10 (patch) | |
tree | 8b4245dfea198287b406c1829a0686469ceee3ed /gtk/gtkwindow.c | |
parent | 81cdc8713cc4a946780bd1bb7fbef64f50f2b239 (diff) | |
download | gtk+-f5e8d7a4e2563786769ef5e5ce50d7df0259dc10.tar.gz |
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.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r-- | gtk/gtkwindow.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |