[gtk+/wip/carlosg/event-delivery] window: Hide titlebox when undecorated
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/event-delivery] window: Hide titlebox when undecorated
- Date: Tue, 9 May 2017 08:52:36 +0000 (UTC)
commit c6dae131c1629f69c02d704b2390722fc81aeee2
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]