A pencil is a useful tool as well. That is not the flaw in the analogy. Rather, Wayland and X11 are two different tools that do the same thing, where a pencil and a screwdriver are not. That is where your original analogy falls down.
Since this information is abundantly available on the internet and has been for a long time, I assume you are already familiar with the security benefits of Wayland but feel they do not apply to you in a meaningful way and are therefore irrelevant. But sure, I’ll bite:
-
Wayland isolates applications from one another. Each application runs in its own separate compositor, which serves as a form of security sandboxing. Even if one application is compromised, it is more difficult for it to affect other running applications or the core system.
-
In X11, windows can run as the root user, which is a major security risk. Wayland eliminates this by design. It doesn’t allow windows to run as the root user, reducing the potential for privilege escalation attacks.
-
Wayland has a simpler and more modern codebase than X11. This reduced complexity translates to a smaller attack surface, making it harder for attackers to find vulnerabilities to exploit.
-
Wayland has better control over input devices. It doesn’t allow one application to snoop on the input events of another. This can prevent keyloggers and other types of input-based attacks.
-
X11 has network transparency built-in, which can be a security risk if not configured correctly. Wayland requires network transparency to be specifically configured, which can be a nuisance if you are trying to configure a VNC session or something, but definitely reduces the risk of remote attacks through the display server.
-
X11 comes with numerous legacy extensions that have been around for decades. These extensions can introduce security vulnerabilities. Wayland doesn’t include these legacy extensions, leading to a cleaner and potentially more secure system.
-
Wayland utilizes a more modern graphics driver model, which can make it easier to isolate and contain graphics driver-related security issues.
There is probably a lot that could be added to that list, but I am not an expert on security or Wayland, or really anything for that matter. These are just some of the more basic and well-known talking points.
Pretty much all hardware except Nvidia can work better with Wayland than X11. That’s not a strike against Wayland; the reason Nvidia doesn’t work as well on Wayland is because Nvidia have historically been somewhat hostile toward the Wayland project. With that exception, in general Wayland will work better on any given GPU than X11.
Again, I am not an expert on this topic but some low-hanging fruit regarding how hardware is better supported on Wayland:
-
Wayland has a more modern and efficient graphics rendering architecture. It provides better support for hardware acceleration, making graphical operations smoother and more responsive, especially on systems with dedicated GPUs.
-
Wayland has better multi-monitor support, hands-down. Better handling of high DPI displays, better handling of dynamic display configuration changes, better support for monitors with different resolutions or scaling settings, even just straight-up more monitors supported on the same GPU.
-
Wayland compositors often provide tear-free rendering by default. This means you’re less likely to see screen tearing when watching videos or moving windows around, thanks to improved synchronization with the display hardware.
-
Wayland typically offers reduced input lag compared to X11, making interactions with your computer, such as moving the mouse or typing on the keyboard, feel more responsive, especially in graphical applications and games.
-
Wayland allows applications to render directly to the screen without going through a compositor, when necessary. This can reduce latency and improve performance in some scenarios, such as gaming.
-
Wayland provides better support for touchscreens and gestures, which is crucial for modern laptops and touchscreen devices. This support allows for natural and responsive touch interactions.
-
Wayland supports dynamic resolution changes, which means that you can change the resolution of your display without needing to log out and back in, providing a more flexible and user-friendly experience.
I would say in general, the most immediately obvious areas where Wayland has better hardware support than X11 would be monitors and touch-enabled devices.
This is somewhat anecdotal, but I would say this comes up constantly in the forums. The most common grievances I see would be monitors not allowing the desired resolution or refresh rate to be used, inflexibility with regards to display scaling (especially with 4K monitors and similar), and difficulty using mismatched monitors in a multi-monitor configuration (different refresh rates, different display densities, etc).
I really wasn’t trying to start a “Xorg vs Wayland” topic, which this now has specifically become, and I really didn’t want to be forced onto a side in such a debate, which now I feel like I am (on the “Wayland is better” team, even though that is not necessarily my opinion). All had originally intended was to point out that “don’t use Wayland” is not a valid suggestion when the ask is “how can I get this working on Wayland”.