elm_cnp: adjust image type to real format
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Sat, 5 Sep 2020 07:07:12 +0000 (09:07 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 6 Sep 2020 21:10:06 +0000 (06:10 +0900)
commit511531524bd58125ebdfeaa1ea0c73c0a7091181
treeb17d1b6852743733feb782ccb1c8e99070fc59bf
parentb52f46e16cdda0635036415b79256bfb784b75a2
elm_cnp: adjust image type to real format

we should never say that we have image/png etc. if we do not have the
respective format. Otherwise we are just confusing the other client.

With this you can copy things from elm to thunderbird / libreoffice
writer / firefox / telegram / chromium.

Please note if you test this: Start *a new xorg session* it was
discovered that xorg clients tent to be totally confused if there was a
protocol error before, or some wrong mime type was delivered before,
thunderbird even likes to crash if this is not done.

This should at some point be extended to more image types.
src/lib/elementary/elm_cnp.c