summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-12-02 14:58:45 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-12-07 09:46:39 +0100
commit3f96d4b6dae56e5e3fc27a4d7b9a8bd90c9a802c (patch)
tree6b9bf290e3518a9c87e1a9639cd11e7454c02fad /gtk
parent0dcd4a5bdb21af20fc829c7d0a2e9f11a9e92a57 (diff)
downloadgtk+-3f96d4b6dae56e5e3fc27a4d7b9a8bd90c9a802c.tar.gz
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.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwindow.c4
1 files changed, 0 insertions, 4 deletions
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