Le lundi 7 juin 2021 à 00:03:51 UTC+2, spi...@gmail.com a écrit :
This all seems like a good idea.
Thanks.
Using that existing libdecor code is probably an ok start, but I would like to see it done reusing as much functionality from FLTK as possible. It does look like that code is pretty minimal (ie it does not link with GTK) so that is a relief. In the end the FlWindow object would do all of this.
libdecor is used both by the FLTK library and by a component of the Wayland system itself (the compositor I believe).
That's why it's necessarily a shared library which plugs into the compositor.
That also makes it a software requiring deep Wayland knowledge.
Thus, using an existing library is an attractive solution.
I assume this is using Cairo for rendering? You should, as that is what the titlebar code is using. The Cairo code needs to be fixed up so it is an acceptable backend for FLTK, and use the same cairo api in both the X11 and Wayland versions.
Yes. All drawing is done using Cairo, and Pango for text.
Thus, there's now a complete Cairo+Pango-based graphics driver in he Wayland branch,
which could be used by the X11 platform too. That would bring antialiasing to the X11 platform.