Commit 968ac90e authored by Jasper St. Pierre's avatar Jasper St. Pierre

Revert "Revert "window: fix initial shadow width for maximized/fullscreen windows""

This reverts commit 8b695cc7.

No reason in the commit message was given for the revert, and we need
this for proper behavior on map.
parent 45d15b30
......@@ -6099,6 +6099,8 @@ gtk_window_map (GtkWidget *widget)
else
gdk_window_unmaximize (gdk_window);
priv->maximize_initially = FALSE;
if (priv->stick_initially)
gdk_window_stick (gdk_window);
else
......@@ -6120,6 +6122,8 @@ gtk_window_map (GtkWidget *widget)
else
gdk_window_unfullscreen (gdk_window);
priv->fullscreen_initially = FALSE;
gdk_window_set_keep_above (gdk_window, priv->above_initially);
gdk_window_set_keep_below (gdk_window, priv->below_initially);
......@@ -6592,7 +6596,9 @@ get_shadow_width (GtkWidget *widget,
return;
if (priv->maximized ||
priv->fullscreen)
priv->maximize_initially ||
priv->fullscreen ||
priv->fullscreen_initially)
return;
if (!gtk_widget_is_toplevel (widget))
......
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