window: Update decorations when updating state

This fixes the maximize button not updating...
This commit is contained in:
Jasper St. Pierre 2013-12-12 21:40:07 -05:00
parent a9eb813054
commit 01f5ff765b

View File

@ -5220,7 +5220,7 @@ create_decoration (GtkWidget *widget)
priv->title_box = priv->titlebar; priv->title_box = priv->titlebar;
} }
update_csd_visibility (window); update_window_buttons (window);
} }
static void static void
@ -6756,7 +6756,7 @@ gtk_window_state_event (GtkWidget *widget,
if (event->changed_mask & (GDK_WINDOW_STATE_FULLSCREEN | GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_TILED)) if (event->changed_mask & (GDK_WINDOW_STATE_FULLSCREEN | GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_TILED))
{ {
update_window_style_classes (window); update_window_style_classes (window);
update_csd_visibility (window); update_window_buttons (window);
gtk_widget_queue_resize (widget); gtk_widget_queue_resize (widget);
} }