Commit 862e0dab authored by Jasper St. Pierre's avatar Jasper St. Pierre

gtkwindow: Reset maximize / fullscreen_initially on state changes

Since 740bcf5f, we use these properties to properly compute shadow widths
for unmapped windows. If a client calls gtk_window_maximize and a window
manager unmaximizes a window, we should draw borders, so we need to
reset these when we get the property notification.
parent e67b4874
......@@ -7592,6 +7592,7 @@ gtk_window_state_event (GtkWidget *widget,
{
priv->fullscreen =
(event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) ? 1 : 0;
priv->fullscreen_initially = priv->fullscreen;
}
if (event->changed_mask & GDK_WINDOW_STATE_TILED)
......@@ -7604,6 +7605,7 @@ gtk_window_state_event (GtkWidget *widget,
{
priv->maximized =
(event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) ? 1 : 0;
priv->maximize_initially = priv->maximized;
g_object_notify (G_OBJECT (widget), "is-maximized");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment