There is also the project XWayland, from X11 team, that makes all the X11 apps run on a "pure" Wayland system.
Yes Fred, in practise, we, gtk2 users in particular are not really using Wayland directly, we use XWayland. Its a "compatibility layer" between our app that wants to talk X11 and the Display that wants to get its instructions from Wayland.
And X11/XWayland is each day more strong.
Indeed. I "think" that much of the improvements we have seen with our apps and Wayland in the last two years are, in fact, XWayland improvements. But my knowledge is superficial.
@Davo.
Did you try to compile your app with GTK3/Wayland (and have a "pure" Wayland binary) or is your app still a X11 application that uses XWayland to run on a "pure" Wayland system?
No Fred, sadly, Lazarus GTK3 is still a long way away from being ready for production.
So, we compile good old standard GTK2 apps and, generally, they all work find. Most GTK distros install GTK2 "out of the box" but there has been the occasional hiccup.
@PascalDragon.
What about the to add in fpc a fpc-Wayland package ( like the one from Andrew https://github.com/andrewd207/fpc-wayland ) ?
So we all can explore Wayland with fpc and share the result.
For example the Lazarus LCL-CustomDraw could have a Wayland target ( and other widgetset too
) .
Wayland does not provide widgets, its a display server. I suspect (but have not looked) that Andrews solution must have chosen to assume either GTK3 or GTK4 ? Sounds very interesting anyway.
@Everybody.
Imho, Wayland is maybe for the future but sure it is not for now ( and a long now ).
Well, they said that about systemd and look where we ended up.
I recently tested a U2204 Gnome, gnome long being first adopters of Wayland. Now, my Wayland experiences have not been good previously, some years ago, Gnome decided to remove "distractions" like the System Tray and while there were a number of projects that restored it, they all stopped working when Wayland appeared. More recently, libayana seems to solve that problem and was "built in" in many distros and, could, with excessive effort be made work with Gnome. To my surprise, its all pre installed in U2204 Gnome and thats very important to me !
My point it, its getting better at quite a rapid rate. And will continue to get better. LCL, being dependent on GTK2 and XWayland does look a risk IMHO. There are heaps of other GTK2 apps around at present but slowly they are catching up, these compatibility layers will not be maintained or pre-installed forever and certainly not 'just' for Lazarus.
Truth is Wayland is more secure, X11 is a network protocol, lots and lots of hooks a hacker can attach to. And Wayland has the potential to be a lot faster because it provides a much shorter path between the app and the screen. Neither of those advantages appear in XWayland of course.
Davo