[gtk+/wip/carlosg/event-delivery: 71/72] window: Hide titlebox when undecorated



commit 59d57855c7626e45fd31f56c7714959beb551a2c
Author: Timm Bäder <mail baedert org>
Date:   Tue May 9 08:32:06 2017 +0200

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2bc44bb..14bf437 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]