[mutter/gnome-3-34] core: Demote tiff and bmp image formats in the clipboard manager



commit 092591b8723dcc88951c730fffb188aae0925d8e
Author: Robert Mader <robert mader posteo de>
Date:   Sun Mar 22 00:34:31 2020 +0100

    core: Demote tiff and bmp image formats in the clipboard manager
    
    Support for them appears to be way less common than e.g. png, which is
    currently the preferred format from Firefox, Chromium, Libreoffice and others.
    Adopt to that fact.
    
    As a side effect, this works around a bug observed when copying images in
    Firefox on Wayland.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1141
    
    (cherry picked from commit 6aa546145fe614d15f23f2a022637fa72bb50149)

 src/core/meta-clipboard-manager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/meta-clipboard-manager.c b/src/core/meta-clipboard-manager.c
index 688693279..c4baab1d6 100644
--- a/src/core/meta-clipboard-manager.c
+++ b/src/core/meta-clipboard-manager.c
@@ -32,12 +32,12 @@ static struct {
   const char *mimetype_glob;
   ssize_t max_transfer_size;
 } supported_mimetypes[] = {
+  { "image/tiff",               MAX_IMAGE_SIZE },
+  { "image/bmp",                MAX_IMAGE_SIZE },
   { "image/gif",                MAX_IMAGE_SIZE },
   { "image/jpeg",               MAX_IMAGE_SIZE },
   { "image/webp",               MAX_IMAGE_SIZE },
   { "image/png",                MAX_IMAGE_SIZE },
-  { "image/bmp",                MAX_IMAGE_SIZE },
-  { "image/tiff",               MAX_IMAGE_SIZE },
   { "image/svg+xml",            MAX_IMAGE_SIZE },
   { "text/plain",               MAX_TEXT_SIZE },
   { "text/plain;charset=utf-8", MAX_TEXT_SIZE },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]