phisch
06/27/2021, 6:52 PMxcb.def
(used for x11), one cairo.def
(used for both x11 and wayland), and a pango.def
(also used for both targets). The issue is that a part of the cairo library (which i will extract into its own def file), links against xcb. So if i create its own file for this, the package will be a different one, and in code, i end up with 2 interop types in different packages which are basically the same. So a function from the cairo package might require cairo.xcb_visualtype_t
instead of a xcb.xcb_visualtype_t
and i have no idea how to tell it that it should use the one from the xcb namespace instead.
There is probably a really easy way to solve this, but i don't know how yet, and the documentations didn't push me in the right direction.backend
, and then both xcb and cairo would have it as backend.xcb_visualtype_t
. I guess this would work as long as there are no conflicting functions in those libraries.