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.
This commit is contained in:
Rob Bradford 2013-03-19 19:40:30 +00:00
parent 1be7f3dee9
commit 8cdbee7fd2

View File

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