Closed Dvad closed 2 months ago
Hmm, as far as I can see there's currently no clipboard support at all in the sokol_app.h X11 backend. I don't know how "terrible" an implementation via Xlib would be, but if you want to give it a shot and provide a PR I won't stop you ;) (a good starting point and inspiration would be GLFW).
I have a version of this function locally already, indeed inspired from glfw. I found X11 api is quite cryptic on the clipboard side so I am not super confident it is not terrible :). I will submit a PR!
I ended up merging the 'extended' PR here which is based on your PR: https://github.com/floooh/sokol/pull/1108
The X11 clipboard getter is left non implemented currently :
I wonder if there is a reason to that and if you would be open to have an implementation added. If so, I am happy to submit a PR.
Thank you for this really great library!