macos: avoid setHasShadow unless shadow changes

This commit is contained in:
Christian Hergert 2021-01-01 13:09:57 -08:00
parent 62af8365f6
commit ad617a0e06

View File

@ -150,6 +150,12 @@ _gdk_macos_surface_set_shadow (GdkMacosSurface *surface,
g_assert (GDK_IS_MACOS_SURFACE (self));
if (self->shadow_top == top &&
self->shadow_right == right &&
self->shadow_bottom == bottom &&
self->shadow_left == left)
return;
self->shadow_top = top;
self->shadow_right = right;
self->shadow_bottom = bottom;