this post was submitted on 28 Aug 2024
16 points (86.4% liked)

Linux

48622 readers
1412 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Okay, Wayland is the future, blah blah.

Would it be possible/make sense to make a Wayland compositor that would emulate a X11 server so a X11 WM could talk to it and be used to manage windows?

I'm just thinking about how we could make sure that the tons of obscure but cool WMs survive the waypocalypse.

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 17 points 3 months ago

well, isnt that just Xwayland?

[–] [email protected] 4 points 3 months ago (2 children)

There are quite a few niche window managers and desktop environments that it'd be a shame to loose. I'm quite fond of Windowmaker (and curious about Afterstep), Trinity DE, and NSCDE for example, and I'm not aware of Wayland plans for any of them.

[–] nyan 3 points 3 months ago

TDE has had occasional discussion and ruminations, but no action yet. Porting it is complicated by the fact that it has its own widget set (TQT, forked from QT3), which would have to be worked on first and is currently undergoing some unrelated rewriting.

The likelihood of any wayland milestones for TDE being set before the end of 2024 is very low unless some major distro completely drops X support.

[–] [email protected] 2 points 3 months ago

Window maker is indeed amazing and would be a shame to loose. It was my go-to back in the day.

[–] [email protected] 3 points 3 months ago (2 children)

It's possible to do but also probably not worth the amount of effort to reimplement all of those protocols only for super old WMs that don't have a Wayland equivalent. None of them are particularly complex, so It's probably easier to just port those to wlroots than implement the compatibility, and it's an opportunity to make an API or library to make it easy to write WMs.

[–] [email protected] 5 points 3 months ago

Creating a wayland compositor based in wlroots is much more work than an X11 window manager. And then there's quite a bit of work to keep up with new Wayland protocols.

But I personally don't think there's a need for more compositors, since the existing compositors do support all kinds of tiling.

E.g. river has custom layout providers, which allows for creating completely custom tiling behaviour. There's even a hyprland plugin which implements river-layout-v3.

[–] [email protected] 4 points 3 months ago (1 children)

None of them are particularly complex

Points to AwesomeWM and its lua lain libraries that will all need to be rewritten for Wayland.

[–] [email protected] 0 points 3 months ago

I haven't looked into it particularly deep but it's not like there's a ton of stuff a WM can possibly do unless the code base is littered with raw X11 calls everywhere.

Most of the window placement and tiling logic shouldn't be tied directly to X11 and only a small part of it should really be interacting with X11 to place and size windows. So one should target that intermediate spot that makes all the X11 calls.

And if the code is too shit to port, it probably deserves to die.