this post was submitted on 15 May 2024
32 points (100.0% liked)

Linux

48229 readers
962 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
top 38 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 6 months ago

I cannot wait until this lands in most distros. So much of the Wayland noise will go away.

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

Sure. I can't wait to finally make the switch (Nvidia).

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

what does "rootfull" mean?

[–] [email protected] 0 points 6 months ago (1 children)

XWayland normally runs x11 apps seamlessly (more or less) in Wayland

XWayland rootful spawns a window which is like a virtual monitor running a full x11 session inside it. You spawn apps inside of the window using the DISPLAY variable

[–] [email protected] 0 points 6 months ago (4 children)

Still, the Xwayland window is missing a title bar that would allow for moving the window around.

This is because Wayland does not decorate its surfaces, this is left to the Wayland client themselves to add window decorations (also known as client side decorations, or CSD for short).

This however would add a lot of complexity to Xwayland (which is primarily an Xserver, not a full fledged Wayland application). Thankfully, there is libdecor which can fence Xwayland from that complexity and provide window decorations for us.

This seems... ridiculous. Windows and MacOS developers don't worry about creating decorations. And they don't worry about that "adding a lot of complexity". Even with X11 you get decorations from the WM without any work. I know I don't understand the glory that is the Wayland architecture and that a bunch of folks will now angrily tell me all the numerous ways in which I'm not only wrong but but also stupid but.. It just seems weird is all.

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

iirc mandatory Client Side Decorations is only a Gnome on Wayland thing and everyone else has support for both Client and Server Side Decorations.

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

I though only GNOME cared about having client-side decorations? Probably why any GNOME app I have has an annoying toolbar when I'm using a tiling window manager.

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

"only gnome" is a bit of an understatement. It's one of the biggest DEs.

[–] [email protected] 3 points 6 months ago* (last edited 6 months ago)

I think that the reason for all the weirdness in wayland is because they are considering more usecases than just desktop with taskbar and window title bars with _ [ ] X buttons. Think signage, mobile interfaces, kiosks, and other weird non-traditional interfaces. Its why absolute window positioning is dumb the way it is too.

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

Honestly I feel like it doesn't really matter either way, it adds a little complexity for the people maintaining qt and gtk and things like that, but most actual application developers aren't interacting directly with the display server so it doesn't make much difference for them

[–] [email protected] 0 points 6 months ago (1 children)

It's probably the biggest deal for games running in xwayland

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

Care to elaborate? What have games to do with window decorations?

[–] [email protected] 0 points 6 months ago (1 children)

Native games need to add client side decorations to be usable on Wayland Gnome. Currently most games just run in XWayland.

[–] [email protected] 1 points 6 months ago

Exactly, native games are dead anyway? :P

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

X11 is a mess. Wayland is a mess.

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

Solution: Create a new standard (always works so well)

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

I present x12land

Because fuck it!

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

With that name we won't get anywhere! I propose we abandon x12land and start a new standard, w12!

[–] [email protected] 5 points 6 months ago (1 children)

How about systemd-windows?

[–] [email protected] 2 points 6 months ago* (last edited 6 months ago)

Shush! Lennart might hear you!

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

damn you beat me to it

[–] [email protected] 0 points 6 months ago (1 children)
[–] [email protected] 1 points 6 months ago

Mir is wayland-based now :p

[–] [email protected] -1 points 6 months ago

If it would be a standard intented for Unix ideology and not business requirements of X11 (35+ years is a long time) or Wayland (RedHat is one company with its own interests, sometimes contradicting, say, mine as a Unix user), then it could work well.

X11 paradigm I like more than that of Wayland, but it could use some clearly incompatible changes.

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

How, exactly, is Wayland a mess? It has a good legacy window compatibility layer and is solving a lot of problems X11 had. Seems perfectly alright to me.

[–] [email protected] -1 points 6 months ago

Ehhh, any time I try a new distro I realize after a half dozen apps dont work, that its because its using wayland by default. X11 just works, wayland is a mess.

[–] [email protected] 0 points 6 months ago (1 children)

Let’s all use the WindowServer from SerenityOS!

[–] [email protected] 1 points 6 months ago

Reject GUI, return to console

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

Can someone please eli5? Why do I never hear anything about the window manager in windows and macos? Why is all the fuss on our side on Linux? I'm genuinely asking.

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

A compositor is a program responsible for displaying program windows and things like the desktop on your PC. On Linux, the compositor is just a program that starts when the system starts. There are multiple desktop environments available, like Plasma or Gnome, each comes with their own compositor, you can choose which you want to use.

Wayland is a protocol that the programs use to communicate with the compositor. Everyone decided to use Wayland, because if each compositor had their own protocol it would be silly, eg some programs would work only on Plasma or Gnome.

It's a replacement for a much older X11, which could no longer keep up with requirements of modern apps.

You never hear anything about compositors on Windows or Mac because there's only one available, you can't choose.

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

Actually, Windows does allow you to use an alternate “compositor”— a feature which is used quite frequently in the industrial/embedded space. Windows calls them “custom shells”. The default is Explorer, but it can be set to any executable.

https://learn.microsoft.com/en-us/windows/iot/iot-enterprise/customize/shell-launcher

[–] [email protected] 1 points 6 months ago

Oh man, brings me back to blackbox / xoblite on my old XP machine.

I remember using notepad to change the config files, no auto formatting or error checking.

Had no idea what I wanted out of it but I loved the minimal aesthetic.

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

Thank you so much. Is there a reason why we have so many issues with scaling and font rendering and the other two OSs don't (I'm not sure if they and they hide it, I don't know). I tried gnome on my pc and the font got very blurry when I set the scaling to 175% for my 27" 4k monitor, switched to x and fraction scaling just disappeared. Why don't the other two OSs have this issue?

[–] [email protected] 1 points 6 months ago

That’s a very long story, but in short - X11 was adopted as display system for Linux in 90’s at the very beginning because it was the only standard display protocol for UNIX systems at that time and it was natural consequence to take it along with the ability to port all the software that was made for it starting in 80s. The design of X started to quickly show its limitations and a replacement was considered. Wayland development was slow for a long time, because the priority was on usability of current graphics stack, which on X it was all in pretty bad shape even not so long ago. X is really not going anywhere with its feature while and only being in maintenance. Additionally, Wayland is very different and in some aspects, so it’s not possible to port things 1:1.

Initially Wayland only supported integer scaling (if you used fractional scale in such scenario, it would render next integer and downscale to your resolution, causing some font rendering imperfections), but new protocol was introduced last year after years of debates and different attempts. New compositors paired with new clients will now render mostly perfectly in fractional scales, but clients that don’t support that will still use previous method. There are also X apps running on Xwayland. Some compositors (like kwin) allow those clients to render natively scaled, some upscale from 100%, so the windows are blurry.

Other OS-es don’t have such problems, because:

  • they’re centrally controlled by just one entity with clear business strategy and unlimited budget
  • in monolithic systems where there’s just one UI and everything is tightly integrated, it’s much easier to innovate the software
  • closed source code don’t have to be perfect, they can hack it as much as they need as long as it’s doing well on end-users’ machine
[–] [email protected] 3 points 6 months ago (1 children)

It is being discussed because we're in the middle of the transition from X to Wayland. Before there wasn't much discussion. In a few years when it settles out there probably won't be much discussion.

Windows and Mac have never had a choice. There might have been significant changes to a window manager layer, but it would have been part of a larger version upgrade. Like between windows 3.1 and 95 or OS 9 to OS X. The visible changes would be closer to desktop environment like KDE and Gnome in Linux.

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

Thank you so much. One more question, why do we have so many issues with scaling, font rendering and all stuff and windows and macos just do it? Why aren't we doing similar?

[–] [email protected] 1 points 6 months ago

In addition to what the others have said, windows has already had its big paradigm change ("similar" to the change from x11 to Wayland that is happening) in the past. It was around 2007 with windows Vista. They also didn't get it quite right on the first try, but because Microsoft can do whatever they want, and in Linux you must convince the community that something is better, it was easier for them to just change everything under everyone's nose.