Add a post-release bugfix from upstream

This commit is contained in:
Simon McVittie
2022-11-23 15:20:55 +00:00
parent a7bb7c5993
commit 59b3ed71b3
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From: Thomas Zajic <zlatko-github@zlatk0.net>
Date: Wed, 17 Nov 2021 17:12:04 +0000
Subject: Flush drawable surface when getting a pixbuf
When getting the drawable surface to get its pixels we should be
flushing the Cairo state, not mark it dirty.
Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4456
Origin: upstream, 3.24.36, commit:e413f5c43259a22269aa1e75767dd545e10119b5
---
gdk/gdkpixbuf-drawable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c
index 603c8ff..e63c3a8 100644
--- a/gdk/gdkpixbuf-drawable.c
+++ b/gdk/gdkpixbuf-drawable.c
@@ -104,7 +104,7 @@ gdk_pixbuf_get_from_window (GdkWindow *src,
* by external applications.
* So be on the safe side and:
*/
- cairo_surface_mark_dirty (surface);
+ cairo_surface_flush (surface);
if (cairo_surface_get_content (surface) & CAIRO_CONTENT_ALPHA)
copy = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width * scale, height * scale);

View File

@ -1,4 +1,5 @@
dist/Reinstate-gdk-wayland-cursor-meson.build.patch
Flush-drawable-surface-when-getting-a-pixbuf.patch
016_no_offscreen_widgets_grabbing.patch
017_no_offscreen_device_grabbing.patch
060_ignore-random-icons.patch