summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2022-05-26 11:42:34 +0200
committerPacho Ramos <pacho@gentoo.org>2022-05-26 11:43:52 +0200
commit3595434921b923d7f67e33c08e8e1f231dab9afc (patch)
treee47f0a2850a1c560d00b527243ffeb1cd8fb238a /gui-libs/gtk/files/gtk-4.6.4-update-shadow-size.patch
parentx11-misc/colord: Call udev_reload (diff)
downloadgentoo-3595434921b923d7f67e33c08e8e1f231dab9afc.tar.gz
gentoo-3595434921b923d7f67e33c08e8e1f231dab9afc.tar.bz2
gentoo-3595434921b923d7f67e33c08e8e1f231dab9afc.zip
gui-libs/gtk: Fix default window sizes in X11
Upstream fix to prevent gtk4 windows from growing forever in X sessions Closes: https://bugs.gentoo.org/844913 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'gui-libs/gtk/files/gtk-4.6.4-update-shadow-size.patch')
-rw-r--r--gui-libs/gtk/files/gtk-4.6.4-update-shadow-size.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/gui-libs/gtk/files/gtk-4.6.4-update-shadow-size.patch b/gui-libs/gtk/files/gtk-4.6.4-update-shadow-size.patch
new file mode 100644
index 000000000000..af69d4ad64e9
--- /dev/null
+++ b/gui-libs/gtk/files/gtk-4.6.4-update-shadow-size.patch
@@ -0,0 +1,33 @@
+From 213490099b7d24664ac635f25c9cf224d6a3e702 Mon Sep 17 00:00:00 2001
+From: Benjamin Otte <otte@redhat.com>
+Date: Thu, 26 May 2022 04:36:14 +0200
+Subject: [PATCH] x11: Always update shadow size
+
+Not updating shadow size unconditionally would lead to shadow size not
+being set on map, which would lead mutter to think that we are a Window
+without extents and then become confused when we suddenly set some.
+
+Make sure that doesn't happen by always having shadows set on map, just
+like GTK3.
+
+Fixes #4136
+---
+ gdk/x11/gdksurface-x11.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
+index 8567d83eb8..fb3b0bd7df 100644
+--- a/gdk/x11/gdksurface-x11.c
++++ b/gdk/x11/gdksurface-x11.c
+@@ -280,7 +280,7 @@ compute_toplevel_size (GdkSurface *surface,
+ gdk_toplevel_size_init (&size, bounds_width, bounds_height);
+ gdk_toplevel_notify_compute_size (GDK_TOPLEVEL (surface), &size);
+
+- if (size.shadow.is_valid && update_geometry)
++ if (size.shadow.is_valid)
+ {
+ update_shadow_size (surface,
+ size.shadow.left,
+--
+GitLab
+