From b91d66bf983c427edfa65914a188a4fc263dadbc Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Mon, 3 Feb 2020 16:43:56 +0100 Subject: [PATCH] core: Extend list of image formats to be stored in the clipboard manager These types are probably common enough to support. See also: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types https://gitlab.gnome.org/GNOME/mutter/merge_requests/1034 --- src/core/meta-clipboard-manager.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/meta-clipboard-manager.c b/src/core/meta-clipboard-manager.c index 713271542..cf32ee210 100644 --- a/src/core/meta-clipboard-manager.c +++ b/src/core/meta-clipboard-manager.c @@ -32,9 +32,13 @@ static struct { const char *mimetype_glob; ssize_t max_transfer_size; } supported_mimetypes[] = { + { "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 }, };