diff --git a/debian/patches/Flush-drawable-surface-when-getting-a-pixbuf.patch b/debian/patches/Flush-drawable-surface-when-getting-a-pixbuf.patch new file mode 100644 index 0000000000..e3c9e62bee --- /dev/null +++ b/debian/patches/Flush-drawable-surface-when-getting-a-pixbuf.patch @@ -0,0 +1,26 @@ +From: Thomas Zajic +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); diff --git a/debian/patches/series b/debian/patches/series index 973fe1ef0d..4526b5382a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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