[mutter/wip/carlosg/clipboard-manager-favor-text: 1/2] core: Demote image formats' priority from preservation in clipboard manager



commit d128b66bfe74e28f7090f2eeaa77c6b4f690f0dc
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Nov 16 12:59:54 2019 +0100

    core: Demote image formats' priority from preservation in clipboard manager
    
    Most usually, applications either expose clipboard content either as text
    or as images, so the prioritization here is pointless. However there's some
    outliers like LibreOffice Calc which exports content as both image and text
    formats (besides other internal ones).
    
    In that mixed case, we probably prefer to keep text formats, rather than
    image based ones.
    
    Closes: https://gitlab.gnome.org/GNOME/mutter/issues/919

 src/core/meta-clipboard-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/core/meta-clipboard-manager.c b/src/core/meta-clipboard-manager.c
index 1c1b587fe..3bda19a19 100644
--- a/src/core/meta-clipboard-manager.c
+++ b/src/core/meta-clipboard-manager.c
@@ -32,9 +32,9 @@ static struct {
   const char *mimetype_glob;
   ssize_t max_transfer_size;
 } supported_mimetypes[] = {
+  { "image/*",                  MAX_IMAGE_SIZE },
   { "text/plain",               MAX_TEXT_SIZE },
   { "text/plain;charset=utf-8", MAX_TEXT_SIZE },
-  { "image/*",                  MAX_IMAGE_SIZE },
 };
 
 static gboolean


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