Xlib vs XCB
Posted: Tue Mar 13, 2018 11:30 am
Hi!
I'm trying to make a XCB version of my (VST) plugin framework, but I'm having some problems.. When a VST host want to open my edior, it sends an effEditIdle event/call to my plugin, with a Xlib Window as an argument, that I'm supposed to reparent my editor into.. And in the Xlib version, I just used this Window as the parent when creating the editor window.. And it works pretty well..
But xcb_create_window() needs a xcb_window_t as a parent..
So, what do I do? Any suggestions?
I fear I need to go back to the Xlib version, and add gazillions of XLockDisplay() calls everywhere, and I'm not very happy about that..
- Tor-Helge
I'm trying to make a XCB version of my (VST) plugin framework, but I'm having some problems.. When a VST host want to open my edior, it sends an effEditIdle event/call to my plugin, with a Xlib Window as an argument, that I'm supposed to reparent my editor into.. And in the Xlib version, I just used this Window as the parent when creating the editor window.. And it works pretty well..
But xcb_create_window() needs a xcb_window_t as a parent..
So, what do I do? Any suggestions?
I fear I need to go back to the Xlib version, and add gazillions of XLockDisplay() calls everywhere, and I'm not very happy about that..
- Tor-Helge