mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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
This commit is contained in:
parent
81de2c2913
commit
2fbbf657d5
@ -32,9 +32,9 @@ static struct {
|
|||||||
const char *mimetype_glob;
|
const char *mimetype_glob;
|
||||||
ssize_t max_transfer_size;
|
ssize_t max_transfer_size;
|
||||||
} supported_mimetypes[] = {
|
} supported_mimetypes[] = {
|
||||||
|
{ "image/*", MAX_IMAGE_SIZE },
|
||||||
{ "text/plain", MAX_TEXT_SIZE },
|
{ "text/plain", MAX_TEXT_SIZE },
|
||||||
{ "text/plain;charset=utf-8", MAX_TEXT_SIZE },
|
{ "text/plain;charset=utf-8", MAX_TEXT_SIZE },
|
||||||
{ "image/*", MAX_IMAGE_SIZE },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user