From e96a271ac411f00bd2ebef965fa3006c09fa213f Mon Sep 17 00:00:00 2001
From: c4pp4
Date: Tue, 14 Apr 2026 10:10:39 +0200
Subject: [PATCH 1/1] Appearance: ignore screenshots from mate-screenshot

Signed-off-by: c4pp4
---
 panels/appearance/bg-pictures-source.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/panels/appearance/bg-pictures-source.c b/panels/appearance/bg-pictures-source.c
index 8c64411..8b56bab 100644
--- a/panels/appearance/bg-pictures-source.c
+++ b/panels/appearance/bg-pictures-source.c
@@ -48,6 +48,7 @@ struct _BgPicturesSourcePrivate
 const char * const content_types[] = {
 	"image/png",
 	"image/jpeg",
+	"image/webp",
 	"image/bmp",
 	"image/svg+xml",
 	NULL
@@ -209,10 +210,11 @@ picture_scaled (GObject *source_object,
   /* Ignore screenshots */
   software = gdk_pixbuf_get_option (pixbuf, "tEXt::Software");
   if (software != NULL &&
-      g_str_equal (software, "gnome-screenshot"))
+      (g_str_equal (software, "mate-screenshot") ||
+      g_str_equal (software, "gnome-screenshot")))
     {
-      g_debug ("Ignored URL '%s' as it's a screenshot from gnome-screenshot",
-               cc_appearance_item_get_uri (item));
+      g_debug ("Ignored URL '%s' as it's a screenshot from screenshot tool",
+              cc_appearance_item_get_uri (item));
       g_object_unref (pixbuf);
       g_object_unref (item);
       return;
-- 
2.52.0

