Window: inline function into only caller

This commit is contained in:
Timm Bäder 2020-02-05 15:10:30 +01:00 committed by Matthias Clasen
parent a67bd7a04e
commit c0fef36692

View File

@ -5380,20 +5380,6 @@ update_csd_shape (GtkWindow *window)
}
}
static void
update_shadow_width (GtkWindow *window,
GtkBorder *border)
{
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
if (priv->surface)
gdk_surface_set_shadow_width (priv->surface,
border->left,
border->right,
border->top,
border->bottom);
}
static void
corner_rect (cairo_rectangle_int_t *rect,
const GtkCssValue *value)
@ -5493,8 +5479,12 @@ update_realized_window_properties (GtkWindow *window,
{
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
if (priv->client_decorated && priv->use_client_shadow)
update_shadow_width (window, window_border);
if (priv->surface && priv->client_decorated && priv->use_client_shadow)
gdk_surface_set_shadow_width (priv->surface,
window_border->left,
window_border->right,
window_border->top,
window_border->bottom);
update_opaque_region (window, window_border, child_allocation);
update_csd_shape (window);