Cloudef / wlc

High-level Wayland compositor library
MIT License
331 stars 58 forks source link

Xwayland selection fix #271

Closed nyorain closed 7 years ago

nyorain commented 7 years ago

This fixes another problem i ran into when debugging images in the clipboard (would really like to finish this feature...). This patch fixes supported for general mime types; images on the clipboard will work now (works with gnomes epiphany browser and gimp as you described). It does still not work for qutebrowser but this is pretty sure a bug in qt/qutebrowser. It does not work in gnome either, the problem is that qutebrowser does only offer the x-qt-image mime type under wayland which is not supported by gimp (it does not offer the image/{png,jpg,..} mime types as it does under x11). Not sure if this is a known bug, i personlly don't use qutebrowser but it might be worth a bug report after some research. Try it out by e.g. logging the supported types received in the compositor directly in data.c, qutebrowser will only offer the (rather useless) x-qt-image mime type for its image data source. If you have any other ideas for testing this, let me know (was not yet able to get another browser to work on wayland).

ddevault commented 7 years ago

Regarding qutebrowser it probably makes sense to send a patch to Qt to use a more standard format.