Wayland is a modern replacement, but it is not a drop-in. That is because it has a completely different architecture and approach.
I cannot ELI5 the differences between the two, because they are somewhat vast.
If you are on a platform that supports Wayland, it is undoubtedly a smoother, prettier and overall better experience. This falls apart due to the lack of direct support from certain apps, desktop environments, etc. The migration has taken some time - but alas this is an open source effort in a massive/fragmented environment so it is obviously a very hard challenge. Like herding 100,000 cats.
Unfortunately not everything will just work. A stopgap is something called xwayland which allows x apps to communicate with wayland - although it is not perfect.
Firefox will work with Wayland. It will work with X. It will work with XWayland. The default though is X or XWayland. You normally need to explicitly tell Firefox to boot up using Wayland. Firefox is now considering making it enabled by default, which would be great for those of us who run on Wayland all the time. It would of course still work on X.
X is a mature architecture which Just Works Fine. I don't know why it's considered "not suited for the way modern desktops operate", because as an X(org) user, all my desktops operate Just Fine whereas whenever I try Wayland my desktops do not operate Just Fine.
>> Wayland is a modern replacement, but it is not a drop-in. That is because it has a completely different architecture and approach.
Wayland is a newcomer and alternative to X(org) - the authors of Wayland want it to take over from X(org) and for X(org) to die off. I hope that X(org) stays.
I still don't understand the hate for X/Xorg [0]. It must be a generational thing. Maybe I'm just being a grumpy greybeard? Who knows. But I do know that whenever I try, say, KDE Plasma (Wayland) I get problems, for example, playing games with WINE, and other annoying glitches and hitches which I don't get using MATE/Xorg.
And no, I don't care if Gnome works great with Wayland - I have a visceral contempt for the modern iteration of the Gnome desktop (and had nasty experiences with the Gtk toolkit way back when which put me off developing with it forever.)
[0] https://old.reddit.com/r/linuxmemes/comments/175chou/linux_b...
Whilst most of the newer things implemented Wayland could theoretically be implemented within the X architecture nobody wants to do it both due to the architecture of X and the age of the Xorg codebase.
X will presumably be around for another 50 years but it will not receive the development needed for modern tech.
Wasn’t trying to shit on it I’m just telling it as it is.
I also dislike Gnome. I run KDE on Wayland on a 5K display and everything is fast, low latency and gorgeous.
Mozilla has been working toward making Firefox work with wayland for a while, seems they've finally gotten in to a shipable state.
When I said "shipable state" I was thinking "shipped, enabled by default". Probably should've just said that instead.