Le mardi 4 janvier 2022 à 19:23:14 UTC+1, er...@seriss.com a écrit :
On 1/4/22 8:07 AM, Manolo wrote:
I'd like to invite fellow FLTK developers to vote about
adding a Wayland platform to the FLTK library.
Sounds +1 to me. Would be good to
have it as an option so folks
who use wayland can test at any time.
Many thanks Greg for your positive vote.
Can you think of any possible downsides to adding it?
There's no change to any previous platform-specific code nor to any platform-independent code.
Thus adding Wayland support should not create problems.
Wayland is presently written under the assumption that class Fl_Nix_System_Driver will
be created (now we know it will probably be called Fl_Unix_System_Driver, really) to host
code used both by the X11 and Wayland platforms. Thus, Albrecht's WIP changes to this code
in relation to timeouts will interfere with this assumption. But it will be easy to reconcile Wayland
with these changes because Wayland does nothing but use the same code as X11 for timeouts.
Adding the Wayland platform to FLTK is some sort of moral engagement to maintain it, even
if the Android platform has been for years mostly dormant in the FLTK master git repo
without trouble.
It's now clear that Wayland is the future of Linux desktops, even if it's also clear that X11 clients will
be kept working via X-servers as Wayland clients.
The FLTK Wayland platform improves on the X11 platform by drawing everything antialiased.
Conceivably, this benefit could be transferred to the X11 platform reusing
Fl_Wayland_Graphics_Driver which is a complete Cairo-based graphics driver.