Le jeudi 28 octobre 2021 à 20:25:09 UTC+2, spi...@gmail.com a écrit :
I am not clear on why part of it is in a different library, rather than just part of libfltk.
My idea was to allow other client programs, independently from FLTK, to link
to libdecor. That applies to the two demo programs (demo and egl) proposed by libdecor.
That also allows to use libdecor in C, instead of requiring C++.
If none of this is considered useful, then it's possible to put all libdecor code in libfltk.a.
Will any of this work be helpful for also getting the X11 version to use Cairo?
Yes it will. An Fl_Cairo_Graphics_Driver class can be built, from Fl_Wayland_Graphics_Driver,
and used both under X11 and Wayland.
But this requires first the Wayland platform code to be merged into the FLTK main branch.