[gtk+] window: Use update_window_buttons to hide title on fullscreen



commit 8cdbee7fd23ff0375e385ee74f13429fd6520706
Author: Rob Bradford <rob linux intel com>
Date:   Tue Mar 19 19:40:30 2013 +0000

    window: Use update_window_buttons to hide title on fullscreen
    
    The function update_window_buttons shows or hides the title header after it
    has finished updating the visibility of the various buttons. Unfortunately
    this
    conflicted with the hiding of the title done when going fullscreen.
    
    This solves the problem and fixes the rendering of fullscreen applications by
    using update_window_buttons to control the visibility of the box in the
    fullscreen case.

 gtk/gtkwindow.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 21d4697..7127210 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4997,6 +4997,7 @@ update_window_buttons (GtkWindow *window)
 
   if (priv->decorated &&
       priv->client_decorated &&
+      !priv->fullscreen &&
       priv->title_box != NULL)
     {
       gchar *layout_desc;
@@ -6260,8 +6261,6 @@ gtk_window_state_event (GtkWidget           *widget,
     {
       priv->fullscreen =
         (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) ? 1 : 0;
-      if (priv->title_box)
-        gtk_widget_set_visible (priv->title_box, !priv->fullscreen);
     }
 
   if (event->changed_mask & (GDK_WINDOW_STATE_FULLSCREEN | GDK_WINDOW_STATE_MAXIMIZED))


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