From 3f96d4b6dae56e5e3fc27a4d7b9a8bd90c9a802c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 2 Dec 2020 14:58:45 +0100 Subject: gdk: Always get shadow width via GdkToplevelSize This removes the gdk_surface_set_shadow_width() function and related vfuncs. The point here is that the shadow width and surface size can now be communicated to GDK atomically, meaning it's possible to avoid intermediate stages where the surface size includes the shadow, but without the shadow width set, or the other way around. --- gtk/gtkwindow.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gtk') diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 90864cea57..b3f848f8e1 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4139,10 +4139,6 @@ update_realized_window_properties (GtkWindow *window) if (!priv->client_decorated) return; - if (priv->surface && priv->use_client_shadow) - gdk_surface_set_shadow_width (priv->surface, - shadow.left, shadow.right, shadow.top, shadow.bottom); - gtk_native_get_surface_transform (GTK_NATIVE (window), &native_x, &native_y); /* update the input shape, which makes it so that clicks -- cgit v1.2.1