lv2 / pugl

A minimal portable API for embeddable GUIs
https://gitlab.com/lv2/pugl/
ISC License
174 stars 34 forks source link

RFC: Allow to setup an X11 event filter #49

Closed falkTX closed 3 years ago

falkTX commented 3 years ago

This might be a bit controversial, but I found that I need this if I am going to not keep a forked pugl.

These changes allow to plug in other custom x11 code on top of pugl, that handles its own windows, events etc. Tested to work with DPF and https://github.com/x42/sofd/

I tried to make it as generic as possible.

falkTX commented 3 years ago

I have now implemented sofd in DPF without having to inject into the main loop of pugl, in https://github.com/DISTRHO/DPF/commit/03d53ea7e778a3943b432164e7d7edd1c51d28ff This PR is no longer necessary.