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)
This commit is contained in:
parent
57992f37cc
commit
092591b872
@ -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 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user