Wayland

Board for discussions around the Epyrus mail and news client.

Moderator: athenian200

User avatar
FixedWing
Moongazer
Moongazer
Posts: 7
Joined: 2024-01-11, 01:53

Wayland

Unread post by FixedWing » 2025-02-20, 15:34

The thing about Linux users is, if you give them an inch, they will take a mile. You give them a GTK2 version and a 32-bit version? They'll ask where the Wayland version is
So, where's the Wayland version? :lol:

Seriously, I see that Epyrus is already running GTK3. How hard would it be to also support Wayland? Right now it is requiring Xwayland.

Great client, by the way. Thank you for doing this!!

Stephen

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37350
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Wayland

Unread post by Moonchild » 2025-02-20, 15:36

FixedWing wrote:
2025-02-20, 15:34
How hard would it be to also support Wayland?
Very. It's a completely different rendering subsystem.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2365
Joined: 2018-05-05, 13:29

Re: Wayland

Unread post by vannilla » 2025-02-20, 17:35

GTK3 isn't really Wayland-native. It'd require GTK4, but I think the toolkit is unsuitable for UXP.
As a side note, GIMP 3 had a number of crashes on Wayland and it turned out to be caused by GTK3 and the GIMP developers had to ask the toolkit's developers to release an update with the required fixes.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37350
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Wayland

Unread post by Moonchild » 2025-02-20, 19:08

vannilla wrote:
2025-02-20, 17:35
It'd require GTK4, but I think the toolkit is unsuitable for UXP.
Not only that, we'd have to add the necessary plumbing for Wayland, as well, instead of what X11 uses.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
FixedWing
Moongazer
Moongazer
Posts: 7
Joined: 2024-01-11, 01:53

Re: Wayland

Unread post by FixedWing » 2025-02-20, 19:24

You guys are obviously thinking more broadly than just Epyrus.

I get it, it would be difficult. And from my perspective, Epyrus does at least work, even if it requires Xwayland.

But a second question, how necessary is it, even if it is difficult? At this point, I think it's fair to say that most Linux systems running web browsers today are running Wayland. So perhaps this is inevitable. The only question being, when?

Stephen

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37350
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Wayland

Unread post by Moonchild » 2025-02-20, 20:38

FixedWing wrote:
2025-02-20, 19:24
You guys are obviously thinking more broadly than just Epyrus.
That is because Epyrus builds on UXP. The Epyrus application code does not talk directly to the underlying O.S. What applies to Epyrus applies to all applications building on the platform, and vice versa, in this case.
When will we have native Wayland support in UXP? Probably never.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
ron_1
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2012-06-28, 01:20

Re: Wayland

Unread post by ron_1 » 2025-02-20, 21:11

FixedWing wrote:
2025-02-20, 19:24
At this point, I think it's fair to say that most Linux systems running web browsers today are running Wayland.
I don't run Wayland, and never want to. I'm sure I'm not the only one.

BenFenner
Keeps coming back
Keeps coming back
Posts: 814
Joined: 2015-06-01, 12:52
Location: US Southeast

Re: Wayland

Unread post by BenFenner » 2025-02-20, 21:36

FixedWing wrote:
2025-02-20, 19:24
I think it's fair to say that most Linux systems running web browsers today are running Wayland.
Say what now? :wtf:

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 755
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: Wayland

Unread post by Lucio Chiappetti » 2025-02-20, 22:01

ron_1 wrote:
2025-02-20, 21:11
I don't run Wayland, and never want to. I'm sure I'm not the only one.
Off-topic:
I hope to be able not to be force to use Wayland until I am alive.
I use a proper window manager (fvwm), and remote $DISPLAY, and have a lot of X-resource customizations.
(may be this should continue in the off-topic "linux 2025" thread viewtopic.php?f=66&t=32107&start=20#p259941)
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2365
Joined: 2018-05-05, 13:29

Re: Wayland

Unread post by vannilla » 2025-02-20, 22:12

Moonchild wrote:
2025-02-20, 19:08
Not only that, we'd have to add the necessary plumbing for Wayland, as well, instead of what X11 uses.
I'd say it depends. Plugins would need to be scrapped since they require Xlib even if indirectly, but most of the UI could be ported since GTK4 has X11 as an afterthought and thus there would already be a lot of Wayland done for us already.
Of course, that's only if GTK4 proves to be up to the task, but from personal experience using the toolkit I have many doubts about it.

User avatar
FixedWing
Moongazer
Moongazer
Posts: 7
Joined: 2024-01-11, 01:53

Re: Wayland

Unread post by FixedWing » 2025-02-20, 22:39

Woops! My bad. I need to be more careful what I say. :)

From GPT 4o:
There are no definitive stats on Wayland vs. Xorg usage across all Linux systems, but we can estimate based on distribution defaults and user preferences.

### **Wayland vs. Xorg Usage Estimate (2025)**
- **Wayland likely holds 40-50% of Linux desktop usage**, growing but not yet a majority.
- **Xorg still used in ~50-60% of systems**, particularly on distros where it's the default or necessary for compatibility.

### **Breakdown by Major Distros:**
| **Distribution** | **Default Display Server** | **User Adoption Estimate** |
|----------------------|---------------------------|---------------------------|
| Fedora (GNOME) | Wayland | ~90% Wayland |
| Ubuntu (GNOME) | Wayland (X fallback) | ~70% Wayland |
| Debian | Xorg | ~80% Xorg |
| Arch Linux | User choice (Xorg common) | ~60% Xorg |
| KDE Plasma (6+) | Wayland (default in some) | ~50% Wayland |
| XFCE, LXQt, MATE, Cinnamon | Xorg (no Wayland support) | ~100% Xorg |
| Pop!_OS, Mint, etc. | Xorg by default | ~90% Xorg |

### **Key Factors:**
- **Fedora and Ubuntu's shift to Wayland** has pushed adoption significantly.
- **KDE Plasma has improved Wayland support**, so adoption is rising, but many users still prefer Xorg for stability.
- **Lightweight DEs (XFCE, MATE, LXQt, Cinnamon) have no Wayland support**, keeping Xorg relevant.
- **NVIDIA driver improvements (GBM support)** are making Wayland more viable.

### **Conclusion:**
Wayland adoption is growing, but Xorg still dominates in many use cases. By 2026-2027, **Wayland may surpass Xorg**, but currently, Xorg likely still holds the slight majority.
Just from these few posts today, though, I definitely can see the issues and why it would be so hard to do.

I'm on Arch and have been using Wayland almost from the beginning.

Thank you!

Stephen

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5517
Joined: 2015-12-09, 15:45

Re: Wayland

Unread post by moonbat » 2025-02-20, 23:27

Off-topic:
FixedWing wrote:
2025-02-20, 22:39
From GPT 4o:
I wouldn't ever take anything an LLM says as gospel.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37350
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Wayland

Unread post by Moonchild » 2025-02-21, 00:31

vannilla wrote:
2025-02-20, 22:12
Moonchild wrote:
2025-02-20, 19:08
Not only that, we'd have to add the necessary plumbing for Wayland, as well, instead of what X11 uses.
I'd say it depends. Plugins would need to be scrapped since they require Xlib even if indirectly, but most of the UI could be ported since GTK4 has X11 as an afterthought and thus there would already be a lot of Wayland done for us already.
Of course, that's only if GTK4 proves to be up to the task, but from personal experience using the toolkit I have many doubts about it.
No, you are very much mistaken. Wayland requires a complete rewrite of much of the layout plumbing to talk to it instead of X. GTK4 may sit on top and from the UI side it can indeed be re-themed to use GTK4, sure, but you're forgetting that we have a layout and rendering engine ourselves which must directly talk to the O.S. at that level (similar to how we have extensive plumbing for DirectX flavours on Windows).
If you want a gauge of how much work that is, then have a look at bug #635134 and its veritable great wall of China of dependent bugs. I think it might actually be the biggest wall of any of the bugs on BZ.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
frostknight
Astronaut
Astronaut
Posts: 516
Joined: 2022-08-10, 02:25

Re: Wayland

Unread post by frostknight » 2025-02-21, 00:54

Moonchild wrote:
2025-02-20, 20:38
When will we have native Wayland support in UXP? Probably never.
Certainly if it happens, it will be a surprise to everyone here including you.

It would mean that someone on the outside of this forum felt like doing insane amounts of work just to get something like this working. lol.

I don't see that happening ever either though.
ron_1 wrote:
2025-02-20, 21:11
I don't run Wayland, and never want to. I'm sure I'm not the only one.
Yeah... I want to avoid wayland as much as possible. Although the best way to do this is just to avoid Linux in the long run. (Meaning use BSD instead) Not sure if Xenocara exists on NetBSD or any other BSD besides OpenBSD.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5517
Joined: 2015-12-09, 15:45

Re: Wayland

Unread post by moonbat » 2025-02-21, 01:05

I'm using KDE Neon with Wayland as the default; it still supports X11 compatibility and Pale Moon runs fine.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 945
Joined: 2020-11-03, 06:47
Location: Philippines

Re: Wayland

Unread post by jobbautista9 » 2025-02-21, 01:18

As long as relevant DEs like XFCE still doesn't support Wayland and Wayland still feels like an experiment (which it very much does based on reading their mailing lists where there seem to always be conflicts between devs here and there on what they want Wayland to be), then I don't see X11 going away for the next 5 decades, imo. :coffee:
Image

:akko_derp:

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

BenFenner
Keeps coming back
Keeps coming back
Posts: 814
Joined: 2015-06-01, 12:52
Location: US Southeast

Re: Wayland

Unread post by BenFenner » 2025-02-21, 01:30

Off-topic:
moonbat wrote:
2025-02-20, 23:27
I wouldn't ever take anything an LLM says as germane.
FTFY

User avatar
FixedWing
Moongazer
Moongazer
Posts: 7
Joined: 2024-01-11, 01:53

Re: Wayland

Unread post by FixedWing » 2025-02-21, 13:28

BenFenner wrote:
2025-02-21, 01:30
moonbat wrote:
2025-02-20, 23:27
I wouldn't ever take anything an LLM says as germane.
FTFY
Off-topic:
I don't take it as gospel, but I do think it's gemane. I asked for an estimate and that's what I got. It didn't give me 'the answer' but it did give me more than I had before I asked. An LLM is definitely fallible, but the information is based upon something. I thought it was a well reasoned analysis. It's how I would have approached the problem if I were doing it myself.

BenFenner
Keeps coming back
Keeps coming back
Posts: 814
Joined: 2015-06-01, 12:52
Location: US Southeast

Re: Wayland

Unread post by BenFenner » 2025-02-21, 14:38

Off-topic:
FixedWing wrote:
2025-02-21, 13:28
It didn't give me 'the answer' but it did give me more than I had before I asked.
Did it? A hole in the foot is more than you had before, too, I guess.
FixedWing wrote:
2025-02-21, 13:28
I thought it was a well reasoned analysis. It's how I would have approached the problem if I were doing it myself.
Sure, but the data itself is completely unreliable. You now have to go confirm all that data before sharing it anywhere if you want to retain your credibility, which means you have to do all the work you were hoping to avoid in the first place.

BenFenner
Keeps coming back
Keeps coming back
Posts: 814
Joined: 2015-06-01, 12:52
Location: US Southeast

Re: Wayland

Unread post by BenFenner » 2025-02-22, 21:22

Off-topic:
BenFenner wrote:
2025-02-21, 14:38
You now have to go confirm all that data before sharing it anywhere if you want to retain your credibility, which means you have to do all the work you were hoping to avoid in the first place.
What do you know, someone else sharing the same thoughts 4 hours ago:
https://youtu.be/QEJpZjg8GuA?feature=shared&t=2075
Alec from Technology Connections wrote:And if I don't vet what it's finding, what I'm really doing is saying "I don't want to be responsible for what I do".