Skip to content

Instantly share code, notes, and snippets.

@probonopd
Last active September 20, 2024 16:44
Show Gist options
  • Save probonopd/9feb7c20257af5dd915e3a9f2d1f2277 to your computer and use it in GitHub Desktop.
Save probonopd/9feb7c20257af5dd915e3a9f2d1f2277 to your computer and use it in GitHub Desktop.
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

The Wayland project seems to operate like they were starting a greenfield project, whereas at the same time they try to position Wayland as "the X11 successor", which would clearly require a lot of thought about not breaking, or at least providing a smooth upgrade path for, existing software.

In fact, it is merely an incompatible alternative, and not even one that has (nor wants to have) feature parity (missing features). And unlike X11 (the X Window System), Wayland protocol designers actively avoid the concept of "windows" (making up incomprehensible words like "xdg_toplevel" instead).

DO NOT USE A WAYLAND SESSION! Let Wayland not destroy everything and then have other people fix the damage it caused. Or force more Red Hat/Gnome components (glib, Portals, Pipewire) on everyone!

Please add more examples to the list.

Wayland seems to be made by people who do not care for existing software. They assume everyone is happy to either rewrite everything or to just use Gnome on Linux (rather than, say, twm with ROX Filer on NetBSD).

Edit: When I wrote the above, I didn't really realize what Wayland even was, I just noticed that some distributions (like Fedora) started pushing it onto me and things didn't work properly there. Today I realize that you can't "install Wayland", because unlike Xorg, there is not one "Wayland display server" but actually every desktop envrironment has its own. And maybe "the Wayland folks" don't "only care about Gnome", but then, any fix that is done in Gnome's Wayland implementation isn't automatically going to benefit all users of Wayland-based software, and possibly isn't even the implementation "the Wayland folks" would necessarily recommend.

Edit 12/2023: If something wants to replace X11 for desktop computers (such as professional Unix workstations), then it better support all needed features (and key concepts, like windows) for that use case. That people also have displays on their fridge doesn't matter the least bit in that context of discussion. Let's propose the missing Wayland protocols for full X11 feature parity.

Edit 08/2024: "Does Wayland becoming the defacto standard display server for Linux serve to marginalize BSD?" https://fossforce.com/2024/07/the-unintended-consequences-linuxs-wayland-adoption-will-have-on-bsd/

Wayland is broken by design

  • A crash in the window manager takes down all running applications
  • You cannot run applications as root
  • You cannot do a lot of things that you can do in Xorg by design
  • There is not one /usr/bin/wayland display server application that is desktop environment agnostic and is used by everyone (unlike with Xorg)
  • It offloads a lot of work to each and every window manager. As a result, the same basic features get implemented differently in different window managers, with different behaviors and bugs - so what works on desktop environment A does not necessarily work in desktop environment B (e.g., often you hear that something "works in Wayland", even though it only really works on Gnome and KDE, not in all Wayland implementations). This summarizes it very well: https://gitlab.freedesktop.org/wayland/wayland/-/issues/233

Apparently the Wayland project doesn't even want to be "X.org 2.0", and doesn't want to provide a commonly used implementation of a compositor that could be used by everyone: https://gitlab.freedesktop.org/wayland/wayland/-/issues/233. Yet this would imho be required if they want to make it into a worthwile "successor" that would have any chance of ever fixing the many Wayland issues at the core.

Wayland breaks screen recording applications

  • MaartenBaert/ssr#431 ❌ broken since 24 Jan 2016, no resolution ("I guess they use a non-standard GNOME interface for this")
  • https://github.com/mhsabbagh/green-recorder ❌ ("I am no longer interested in working with things like ffmpeg/wayland/GNOME's screencaster or solving the issues related to them or why they don't work")
  • vkohaupt/vokoscreenNG#51 ❌ broken since at least 7 Mar 2020. ("I have now decided that there will be no Wayland support for the time being. Reason, there is no budget for it. Let's see how it looks in a year or two.") - This is the key problem. Wayland breaks everything and then expects others to fix the wreckage it caused on their own expense.
  • obsproject/obs-studio#2471 ❌ broken since at least 7 Mar 2020. ("Wayland is unsupported at this time", "There isn't really something that can just be easily changed. Wayland provides no capture APIs")
  • There is a workaround for OBS Studio that requires a obs-xdg-portal plugin (which is known to be Red Hat/Flatpak-centric, GNOME-centric, "perhaps" works with other desktops)
  • phw/peek#1191 ❌ broken since 14 Jan 2023. Peek, a screen recording tool, has been abandoned by its developerdue to a number of technical challenges, mostly with Gtk and Wayland ("Many of these have to do with how Wayland changed the way applications are being handled")

As of February 2024, screen recording is still broken utterly on Wayland with the vast majority of tools. Proof

Workaround: Find a Wayland compositor that supports the wlr-screencopy-unstable-v1 protocol and use wf-recorder -a. The default compositor in Raspberry Pi OS (Wayfire) does, but the default compositor in Ubuntu doesn't. (That's the worst part of Wayland: Unlike with Xorg, it always depends on the particular Wayand compositor what works and what is broken. Is there even one that supports everything?)

Wayland breaks screen sharing applications

  • jitsi/jitsi-meet#2350 ❌ broken since 3 Jan 2018
  • jitsi/jitsi-meet#6389 ❌ broken since 24 Jan 2016 ("Closing since there is nothing we can do from the Jitsi Meet side.") See? Wayland breaks stuff and leaves application developers helpless and unable to fix the breakage, even if they wanted.

NOTE: As of November 2023, screen sharing in Chromium using Jitsi Meet is still utterly broken, both in Raspberry Pi OS Desktop, and in a KDE Plasma installation, albeit with different behavior. Note that Pipewire, Portals and whatnot are installed, and even with them it does not work.

Wayland breaks automation software

sudo pkg install py37-autokey

This is an X11 application, and as such will not function 100% on 
distributions that default to using Wayland instead of Xorg.

Wayland breaks Gnome-Global-AppMenu (global menus for Gnome)

Wayland broke global menus with KDE platformplugin

Good news: According to this report global menus now work with KDE platformplugin as of 4/2022

Wayland breaks global menus with non-KDE Qt platformplugins

Wayland breaks AppImages that don't ship a special Wayland Qt plugin

  • https://blog.martin-graesslin.com/blog/2018/03/unsetting-qt_qpa_platform-environment-variable-by-default/ ❌ broke AppImages that don't ship a special Wayland Qt plugin. "This affects proprietary applications, FLOSS applications bundled as appimages, FLOSS applications bundled as flatpaks and not distributed by KDE and even the Qt installer itself. In my opinion this is a showstopper for running a Wayland session." However, there is a workaround: "AppImages which ship just the XCB plugin will automatically fallback to running in xwayland mode" (see below).

Wayland breaks Redshift

Update 2023: Some Wayland compositors (such as Wayfire) now support wlr_gamma_control_unstable_v1, see https://github.com/WayfireWM/wayfire/wiki/Tutorial#configuring-wayfire and jonls/redshift#663. Does it work in all Wayland compositors though?

Wayland breaks global hotkeys

Wayland does not work for Xfce?

See below.

Wayland does not work properly on NVidia hardware?

Apparently Wayland relies on nouveau drivers for NVidia hardware. The nouveau driver has been giving unsatisfactory performance since its inception. Even clicking on the application starter icon in Gnome results in a stuttery animation. Only the proprietary NVidia driver results in full performance.

See below.

Update 2024: The situation might slowly be improving. It remains to be seen whether this will work well also for all existing old Nvidia hardware (that works well in Xorg).

Wayland does not work properly on Intel hardware

Wayland prevents GUI applications from running as root

  • https://bugzilla.redhat.com/show_bug.cgi?id=1274451 ❌ broken since 22 Oct 2015 ("No this will only fix sudo for X11 applications. Running GUI code as root is still a bad idea." I absolutely detest it when software tries to prevent me from doing what some developer thinks is "a bad idea" but did not consider my use case, e.g., running truss for debugging on FreeBSD needs to run the application as root. https://bugzilla.mozilla.org/show_bug.cgi?id=1323302 suggests it is not possible: "These sorts of security considerations are very much the way that "the Linux desktop" is going these days".)

Suggested solution

Wayland is biased toward Linux and breaks BSD

  • https://blog.netbsd.org/tnf/entry/wayland_on_netbsd_trials_and ❌ broken since 28 Sep 2020 ("Wayland is written with the assumption of Linux to the extent that every client application tends to #include <linux/input.h> because Wayland's designers didn't see the need to define a OS-neutral way to get mouse button IDs. (...) In general, Wayland is moving away from the modularity, portability, and standardization of the X server. (...) I've decided to take a break from this, since it's a fairly huge undertaking and uphill battle. Right now, X11 combined with a compositor like picom or xcompmgr is the more mature option."

Wayland complicates server-side window decorations

  • https://blog.martin-graesslin.com/blog/2018/01/server-side-decorations-and-wayland/ ❌ FUD since at least 27 January 2018 ("I heard that GNOME is currently trying to lobby for all applications implementing client-side decorations. One of the arguments seems to be that CSD is a must on Wayland. " ... "I’m burnt from it and are not interested in it any more.") Server-side window decorations are what make the title bar and buttons of all windows on a system consistent. They are a must have_ for a consistent system, so that applications written e.g., Gtk will not look entirely alien on e.g., a Qt based desktop, and to enforce that developers cannot place random controls into window titles where they do not belong. Client-side decorations, on the other hand, are destroying uniformity and consistency, put additional burden on application and toolkit developers, and allow e.g., GNOME developers to put random controls (that do not belong there) into window titles (like buttons), hence making it more difficult to achieve a uniform look and feel for all applications regardless of the toolkit being used.

Red Hat employee Matthias Clasen ("I work at the Red Hat Desktop team... I am actually a manager there... the people who do the actual work work for me") expicitly stated "Client-side everything" as a principle, even though the protocol doesn't enforce it: "Fonts, Rendering, Nested Windows, Decorations. "It also gives the design more freedom to use the titlebar space, which is something our designers appreciate" (sic). Source

Wayland breaks windows rasing/activating themselves

Wayland breaks RescueTime

Wayland breaks window managers

Apparently Wayland (at least as implemented in KWin) does not respect EWMH protocols, and breaks other command line tools like wmctrl, xrandr, xprop, etc. Please see the discussion below for details.

Wayland requires JWM, TWM, XDM, IceWM,... to reimplement Xorg-like functionality

  • Screen recording and casting
  • Querying of the mouse position, keyboard LED state, active window position or name, moving windows (xdotool, wmctrl)
  • Global shortcuts
  • System tray
  • Input Method support/editor (IME)
  • Graphical settings management (i.e. tools like xranrd)
  • Fast user switching/multiple graphical sessions
  • Session configuration including but not limited to 1) input devices 2) monitors configuration including refresh rate / resolution / scaling / rotation and power saving 3) global shortcuts
  • HDR/deep color support
  • VRR (variable refresh rate)
  • Disabling input devices (xinput alternative)

As it currently stands minor WMs and DEs do not even intend to support Wayland given the sheer complexity of writing all the code required to support the above features. You do not expect JWM, TWM, XDM or even IceWM developers to implement all the featured outlined in ^1.

Wayland breaks _NET_WM_STATE_SKIP_TASKBAR protocol

  • https://github.comelectron/electron#33226 ("skipTaskbar has no effect on Wayland. Currently Electron uses _NET_WM_STATE_SKIP_TASKBAR to tell the WM to hide an app from the taskbar, and this works fine on X11 but there's no equivalent mechanism in Wayland." Workarounds are only available for some desktops including GNOME and KDE Plasma.) ❌ broken since March 10, 2022

Wayland breaks NoMachine NX

Wayland breaks xclip

xclip is a command line utility that is designed to run on any system with an X11 implementation. It provides an interface to X selections ("the clipboard"). Apparently Wayland isn't compatible to the X11 clipboard either.

This is another example that the Wayland requires everyone to change components and take on additional work just because Wayland is incompatible to what we had working for all those years.

Wayland breaks SUDO_ASKPASS

Wayland breaks X11 atoms

X11 atoms can be used to store information on windows. For example, a file manager might store the path that the window represents in an X11 atom, so that it (and other applications) can know for which paths there are open file manager windows. Wayland is not compatible to X11 atoms, resulting in all software that relies on them to be broken until specifically ported to Wayland (which, in the case of legacy software, may well be never).

Possible workaround (to be verified): Use the (Qt proprietary?) Extended Surface Wayland protocol casually mentioned in https://blog.broulik.de/2016/10/global-menus-returning/ "which allows you to set (and read?) arbitrary properties on a window". Is it the set_generic_property from https://github.com/qt/qtwayland/blob/dev/src/extensions/surface-extension.xml?

Wayland breaks games

Games are developed for X11. And if you run a game on Wayland, performance is subpar due to things like forced vsync. Only recently, some Wayland implementations (like KDE KWin) let you disable that.

Wayland breaks xdotool

(Details to be added; apparently no 1:1 drop-in replacement available?)

Wayland breaks xkill

xkill (which I use on a regular basis) does not work with Wayland applications.

What is the equivalent for Wayland applications?

Wayland breaks screensavers

Is it true that Wayland also breaks screensavers? https://www.jwz.org/blog/2023/09/wayland-and-screen-savers/

Wayland breaks setting the window position

Other platforms (Windows, Mac, other destop environments) can set the window position on the screen, so all cross-platform toolkits and applications expect to do the same on Wayland, but Wayland can't (doesn't want to) do it.

  • PCSX2/pcsx2#10179 PCX2 (Playstation 2 Emulator) ❌ broken since 2023-10-25 ("Disables Wayland, it's super broken/buggy in basically every scenario. KDE isn't too buggy, GNOME is a complete disaster.")

Wayland breaks color mangement

Apparently color management as of 2023 (well over a decade of Wayland development) is still in the early "thinking" stage, all the while Wayland is already being pushed on people as if it was a "X11 successor".

https://gitlab.freedesktop.org/pq/color-and-hdr/-/blob/main/doc/color-management-model.md

Wayland breaks DRM leasing

According to Valve, "DRM leasing is the process which allows SteamVR to take control of your VR headset's display in order to present low-latency VR content".

Wayland breaks In-home Streaming

Wayland breaks NetWM

Extended Window Manager Hints, a.k.a. NetWM, is an X Window System standard for the communication between window managers and applications

Wayland breaks window icons

Update 6/2024: Looks like this will get unbroken thanks to xdg_toplevel_icon_manager_v1, so that QWindow::setIcon will work again. If, and that's a big if, all compositors will support it. At least KDE is on it.

Wayland breaks drag and drop

Wayland breaks ./windowmanager --replace

  • Many window managers have a --replace argument, but Wayland compositors break this convention.

Wayland breaks Xpra

Xpra is an open-source multi-platform persistent remote display server and client for forwarding applications and desktop screens.

  • Under Xpra a context menu cannot be used: it opens and closes automatically before you can even move the mouse on it. "It's not just GDK, it's the Wayland itself. They decided to break existing applications and expect them to change how they work." (Xpra-org/xpra#4246) ❌ broken since 2024-06-01

Workarounds

  • Users: Refuse to use Wayland sessions. Uninstall desktop environments/Linux distributions that only ship Wayland sessions. Avoid Wayland-only applications (such as PreSonus Studio One) (potential workaround: run in https://github.com/cage-kiosk/cage)
  • Application developers: Enforce running applications on X11/XWayland (like LibrePCB does as of 11/2023)

Examples of Wayland being forced on users

This is exactly the kind of behavior this gist seeks to prevent.

History

  • 2008: Wayland was started by krh (while at Red Hat)
  • End of 2012: Wayland 1.0
  • Early 2013: GNOME begins Wayland porting

Source: "Where's Wayland?" by Matthias Clasen - Flock 2014

A decade later... Red Hat wants to force Wayland upon everyone, removing support for Xorg

References

@phrxmd
Copy link

phrxmd commented May 27, 2022

Wayland do not support absolute windows positioning and heavily sabotage any attempts to introduce common protocol for that. Literally all desktop GUI systems support absolute window positioning, including toy one man OS projects. ...except Wayland.

So claims like Wayland is protocol, extensions can be made do not apply. Wayland do not respect application developer and user freedom.

For me absolute windows positioning is mandatory feature of Desktop GUI system and I absolutely can't accept Wayland because it have no it. It do not matter how good Wayland supports hiDPI, multi-monitor, tear-free, color management etc. if core feature is missing.

The argument against this is the following:

  • Desktop GUIs are only a subset of what graphical user interfaces are used for already today. For example, think about automotive implementations where you might have multiple displays of different sizes and shapes in different places of your car. An absolute global 2D Cartesian coordinate system doesn't help at all when your displays are circular or triangular and strewn around a lot of different places.
  • Even for desktop GUIs your underlying assumption seems to be that you can map your desktop to a set of rectangular 2D surfaces, to which you can assign absolute coordinate systems. However, this hasn't been entirely true even in the past (I disagree with @bodqhrohro on a lot of things, here I agree with him) and it's probably not true in the future. In the past, there were workarounds, like masking the round corners of your CRT or the notches of your phone. However, if you think about how long Unix or X11 have been around, and if you then look 30-40 years into the future, it's quite a big assumption that in 2030 or 2050 we will interact with computers exclusively through rectangular surfaces. Introducing global 2D coordinate systems today is likely to introduce serious limitations tomorrow. Imagine interacting with your computer through some kind of AR display where your windows/surfaces appear in different places in a 3D space - suddenly absolute positioning in a global 2D coordinate system becomes counterproductive.

So the idea is to look instead at what absolute coordinates are being used for - e.g. putting panels of a defined size on a defined screen edge and so on - and introduce protocols for those use cases. It's not a perfect approach - there are still issues with things like splash screens - and you can disagree with the idea, but there is a logic here and it's not just about imposing arbitrary limitations on the user.

@Mark-4158
Copy link

@X547 When using LWQt QtWayland in combination with LWQt Mutter, QWindow::setPosition() works as expected (under Wayland).

@bodqhrohro
Copy link

@X547

all screen rectangles combined

This is what I meant by

if somethings strives to emulate such a notion, it doesn't mean that's possible in an adequate manner

The big rectangle approach has obvious drawbacks like dead areas which don't belong to any display. Mixed DPIs make it even more insane.

Xinerama works the same way, now what?
@sognokdev

Laptop used to have plenty of ports

And that's why people who engage in hardware repairing tend to still use ancient laptops. For example, USB2COM adapters are unreliable, so a real COM port is needed for flashing sometimes.

But the laptops of today are also immensely more powerful

Not much actually, because the Moore's law stopped working for CPUs about two decades ago. The performance and a long battery life are contradicting things, so a major throttling is needed for the latter, and the promised 12 hours and more turn into 3–4 hours on non-typical tasks at best. And the reliability is sacrificed a lot for the sake of high speeds, especially in Intel-based laptops (which I don't use anyway though): for example, USB data lines instead of a southbridge now go directly into CPU, and in case of any short-circuiting burn the CPU itself; short-circuiting also became more probable due to the fragile nature of Type C if compared to Type A.

There is such thing as coproeconomics: it's more profitable to produce shitty stuff that dies early and is unrepairable, unless having to care about the quality due to legal regulations (here comes a stone thrown into the side of free market evangelists). So, as a rule of thumb, older is better, because the art of coproeconomics is mastered with time: surprisingly, it's easier to engineer a reliable device than a device which dies exactly after the warranty term expires.

But USB flash drives are more convenient to use, and their capacity is much bigger

I wouldn't call USB flash drives "convenient" if you need to attach one to a graduation work ;) They're just not flat enough (even those lacking a complete coating), unlike optical disks are. Though memory cards outperform both for this matter.

And also DVD+RWs are still cheaper than flash drives of the similar capacity in some regions.

Your cheap and compact Nokia 3310 phone had a 22 hour talk time. It's 16 hours for the Iphone 11. Yet, the iPhone is definitely more modern, much more.

Nokia G21 is newer and outperforms in talk time both, now what? :P

but there is a reason for that

Such reasons should not be supposed to be accepted by everyone.

It doesn't mean that the new thing is not more modern

I never tried to prove that Wayland is older than X11 lol.

Grow up.

Achtung, ageism in the thread!

@phrxmd

here I agree with him

him

insert some annoyed SJW mumbling here

some kind of AR display where your windows/surfaces appear in different places in a 3D space

That's going to be hell less usable than even capacitive touchscreens. (And still the mass market would swallow it again, at least temporarily, like 3D displays which came into oblivion after a few years of hype).

So the idea is to look instead at what absolute coordinates are being used for

Okay.

2022-05-27-151122_1366x768_scrot

Here are numeric boxes with coordinates, with a live stub over the screen. Tell me how to map this on the anchor model lol. Please no "screen recording should be a part of compositor" bullshit, and no "draw it on a preview".

Copy link

ghost commented May 27, 2022

Personally I think we should abandon Xorg and Wayland and create the official Sneed Display Server.

@phrxmd
Copy link

phrxmd commented May 27, 2022

@phrxmd

here I agree with him

him

insert some annoyed SJW mumbling here

You regularly link to sites where you write under a male name using male forms (Russian makes this clear enough), so that seemed like a reasonably safe assumption, we don't need to turn this into a debate about your masculinity.

some kind of AR display where your windows/surfaces appear in different places in a 3D space

That's going to be hell less usable than even capacitive touchscreens. (And still the mass market would swallow it again, at least temporarily, like 3D displays which came into oblivion after a few years of hype).

Usability preferences are different. Yours are not something I care about. I regularly work in settings where AR is either in use already or is being considered as a serious enhancement. Sure, that's a niche context, but so was using more than one screen - which worked flawlessly on the Mac in the 1980s, and on Unix workstations that had their own ways of making it work with the global desktop model, and it was only 15 years or so until X11R6 caught up (somewhat) thanks to design decisions made in the 1980s.

So the idea is to look instead at what absolute coordinates are being used for

Okay. [...]

Here are numeric boxes with coordinates, with a live stub over the screen. Tell me how to map this on the anchor model lol. Please no "screen recording should be a part of compositor" bullshit, and no "draw it on a preview".

Honestly, who cares? The people who can't live without a live stub over the screen can go continue using X11. When I want to record a portion of the screen, I use OBS, select Screen Recording as the input source, enter the crop coordinates of the bounding box and I'm done.

@bodqhrohro
Copy link

Russian makes this clear enough

It's a thing I'm working on, by reviving outdated Proto-Slavic verb forms (aorist and imperfect), and a combination of optative from *byti + infinitive as a replacement for the conditional mood. When it's ready, I'm going to publish it on some linguistic forum for discussion and final polishing.

Since 2019, I tried to use it on that website, but any linguistic experiments count as violations of the Russian grammar there, so later I falled back to plural, then to avoiding the past tense at all. One of the reasons I left that website (hopefully finally this time, as it's totally not the first attempt).

I regularly work in settings where AR is either in use already or is being considered as a serious enhancement

And powered by GNU/Linux?

The people who can't live without a live stub over the screen can go continue using X11

What's the purpose to make a "new" protocol intentionally deficient so some ancient monster would still be needed to compensate its deficiency? Also, Xwayland clients don't have a complete access to Wayland ones, which is a major show-stopper. And hey, if you have a bounding box (moreover, a rectangular one!), it means you actually have some coordinates, right?

@phrxmd
Copy link

phrxmd commented May 29, 2022

The people who can't live without a live stub over the screen can go continue using X11

What's the purpose to make a "new" protocol intentionally deficient so some ancient monster would still be needed to compensate its deficiency?

No protocol will stop a few diehards from sticking to old systems for whatever reason.

Also, Xwayland clients don't have a complete access to Wayland ones, which is a major show-stopper.

The people who prefer to stick with X11 have no Wayland clients and hence no need for taking screenshots of them.

And hey, if you have a bounding box (moreover, a rectangular one!), it means you actually have some coordinates, right?

No. It means you are recording a canvas with a PipeWire input stream somewhere that you can crop.

@bodqhrohro
Copy link

No protocol will stop a few diehards from sticking to old systems for whatever reason.

So it's not even worth trying?

The people who prefer to stick with X11 have no Wayland clients and hence no need for taking screenshots of them.

Wut? Then what Xwayland is for at all, if the worlds are supposed to be completely isolated?

It means you are recording a canvas with a PipeWire input stream somewhere that you can crop

Does PipeWire support non-rectangular displays?

@phrxmd
Copy link

phrxmd commented May 30, 2022

No protocol will stop a few diehards from sticking to old systems for whatever reason.

So it's not even worth trying?

It totally is, but no matter what you do, there's always going to be some unhappy diehards out there.

Every change breaks something for someone.

The people who prefer to stick with X11 have no Wayland clients and hence no need for taking screenshots of them.

Wut? Then what Xwayland is for at all, if the worlds are supposed to be completely isolated?

XWayland is for two groups of people:

  1. People who use Wayland and want to use some legacy X11 software (as in: for which there is no alternative and that hasn't been ported to Wayland yet).
  2. People who don't actually use Wayland, but want to complain about it and need something to show off how some X11 tool is proof that Wayland breaks everything.

For most people in group 1 XWayland is good enough. Most of the rest are actually in group 2.

@bodqhrohro
Copy link

bodqhrohro commented May 30, 2022

@phrxmd you also ignore the case of running Wayland clients in a X.Org session. For many years, it was the only reliable way to run them actually, as DRI/KMS/fbdev backends in compositors were not ready yet. Now it's purposeless, as virtually all useful Wayland clients are also able to act as native X11 clients, but in the future it may become relevant again, as X11 client support is dropped and apps become Wayland only. And there would be nothing to stop screenshoting them via X11 SHM.

@phrxmd
Copy link

phrxmd commented May 30, 2022

@phrxmd you also ignore the case of running Wayland clients in a X.Org session. For many years, it was the only reliable way to run them actually, as DRI/KMS/fbdev backends in compositors were not ready yet. Now it's purposeless, as virtually all useful Wayland clients are also able to act as native X11 clients, but in the future it may become relevant again, as X11 client support is dropped and apps become Wayland only. And there would be nothing to stop screenshoting them via X11 SHM.

Sure, that's technically correct. There are also other cases I ignore, e.g. running Weston under X11 as a crude form of running Wayland apps over the network, or running Wayland in VMs in an X11 session.

@OliverLeitner
Copy link

OliverLeitner commented Jun 6, 2022

is it jus me, or does anyone else have these experiences too:

sway, a posterchild for wayland shows 180^ rotated.
if one app is crashing, the whole window manager goes tango down.
wayland does not seem to like virgl, performance is freezingly slow.

@y4rr
Copy link

y4rr commented Jun 10, 2022

Wayland folks only seem to care about Gnome, and alienating everyone else in the process.

Thank you for this post. This is a crucial piece of information which, for some reason, I have never seen anywhere else where Wayland is being discussed.

From now on, Wayland does not exist for me anymore.

@y4rr
Copy link

y4rr commented Jun 10, 2022

What's the purpose to make a "new" protocol intentionally deficient so some ancient monster would still be needed to compensate its deficiency?

Programmers, generally, do not care about the actual user needs, and just find joy in the process of writing code. Therefore, almost any new code that's being written anywhere has no purpose other than increasing dopamine levels in the brain of some programmer.

@phrxmd
Copy link

phrxmd commented Jun 10, 2022

@y4rr

Wayland folks only seem to care about Gnome, and alienating everyone else in the process.

Thank you for this post. This is a crucial piece of information which, for some reason, I have never seen anywhere else where Wayland is being discussed.

That's because it is not true and repeating it doesn't make it so. There's plenty of folks (me included) who don't care about GNOME, yet use Wayland as their daily driver.

@y4rr
Copy link

y4rr commented Jun 10, 2022

That's because it is not true

Well, this could be proven (or debunked) objectively, for example, by counting the number of issues that contain "gtk" or "qt" keyword in Wayland's issue tracking, grouping by issue status, and then counting the ratio of closed / done issues for each keyword.

@phrxmd
Copy link

phrxmd commented Jun 10, 2022

@y4rr

Wayland folks only seem to care about Gnome, and alienating everyone else in the process.

Thank you for this post. This is a crucial piece of information which, for some reason, I have never seen anywhere else where Wayland is being discussed.

That's because it is not true [and repeating it doesn't make it so. There's plenty of folks (me included) who don't care about GNOME, yet use Wayland as their daily driver.]

Well, this could be proven (or debunked) objectively, for example, by counting the number of issues that contain "gtk" or "qt" keyword in Wayland's issue tracking, grouping by issue status, and then counting the ratio of closed / done issues for each keyword.

OK:

  • 'gtk': 3 open, 5 closed, 8 total
  • 'qt': 2 open, 7 closed, 9 total

@sognokdev
Copy link

Well, this could be proven (or debunked) objectively, for example, by counting the number of issues that contain "gtk" or "qt" keyword in Wayland's issue tracking, grouping by issue status, and then counting the ratio of closed / done issues for each keyword.

If by "Wayland's issue tracking", you mean this and this, and this, all combined, then:

Wayland: 33 issues, including 14 closed issues (42% closed issues).
Xorg: 40 issues, including 8 closed issues (20% closed issues).

@X547
Copy link

X547 commented Jun 11, 2022

That's because it is not true and repeating it doesn't make it so.

I can't find any release-quality classic desktop-like Wayland implementation except Gnome Mutter. Sway is tiled and not classic desktop. Wayland KDE is buggy and not feature-complete. Non-Sway Wayland implementations that use wlroots are very incomplete.

@phrxmd
Copy link

phrxmd commented Jun 11, 2022

Wayland folks only seem to care about Gnome, and alienating everyone else in the process.

Thank you for this post. This is a crucial piece of information which, for some reason, I have never seen anywhere else where Wayland is being discussed.

That's because it is not true and repeating it doesn't make it so.

I can't find any release-quality classic desktop-like Wayland implementation except Gnome Mutter. Sway is tiled and not classic desktop. Wayland KDE is buggy and not feature-complete. Non-Sway Wayland implementations that use wlroots are very incomplete.

The claim (quoted back in for clarity) was "Wayland folks only seem to care about GNOME", not "GNOME has the best Wayland support at the moment".

GNOME indeed has the best Wayland support at the moment. Some people claim that this is the result of a systematic pro-GNOME bias. The simpler explanation is that GNOME was the first to implement; consequently it is more polished.

That said, I use Wayland KDE and find that it works for me. It does have bugs. When I encounter them, I report them. They get fixed. It's new software, so that's what I'd expect. I'm happy with it, YMMV.

@bodqhrohro
Copy link

The simpler explanation is that GNOME was the first to implement

No one was sooner to implement than Weston. And Weston bites so much that I didn't even include it into the table. I still remember it was claimed to be a Compiz analog, lol.

@phrxmd
Copy link

phrxmd commented Jun 13, 2022

I can't find any release-quality classic desktop-like Wayland implementation except Gnome Mutter. Sway is tiled and not classic desktop. Wayland KDE is buggy and not feature-complete. Non-Sway Wayland implementations that use wlroots are very incomplete.

[...] The simpler explanation is that GNOME was the first to implement [...]

No one was sooner to implement than Weston.

Technically correct 10/10, but Weston is not and neither aims nor claims to be a classic desktop-like Wayland implementation (see the bold bit).

Copy link

ghost commented Jun 13, 2022

That said, I use Wayland KDE and find that it works for me. It does have bugs. When I encounter them, I report them. They get fixed. It's new software, so that's what I'd expect. I'm happy with it, YMMV.

This is what we need more of. Not "boycott Wayland because it's new/incomplete/different!". Not "Wayland is breaking everything!". Not "Wayland only cares about corporate agendas and is trying to take over Linux!".

We need this. "Hey, here's a problem with Wayland: how do we fix this?"

@bodqhrohro
Copy link

Weston is not and neither aims nor claims to be a classic desktop-like Wayland implementation

It behaves pretty "classic desktop-like" to me.

Hey, here's a problem with Wayland: how do we fix this?

Here's a problem of ignorance of needs of modular desktops with Wayland, how do we fix this?

@X547
Copy link

X547 commented Jun 13, 2022

We need this. "Hey, here's a problem with Wayland: how do we fix this?"

They don't want to fix problems: https://gitlab.freedesktop.org/wayland/wayland/-/issues/110. So Wayland IS the problem. Wayland tries to bring development focus from feature-complete X.org causing X.org stagnation and eventually lack of support.

@X547
Copy link

X547 commented Jun 13, 2022

Here's a problem of ignorance of needs of modular desktops with Wayland, how do we fix this?

Wlroots?

@X547
Copy link

X547 commented Jun 13, 2022

GNOME also share forcing feature restriction ideology: https://gitlab.gnome.org/GNOME/mutter/-/issues/217.

@bodqhrohro
Copy link

They don't want to fix problems: https://gitlab.freedesktop.org/wayland/wayland/-/issues/110

Maybe you don't, but I remember a circa 10 years old JavaScript "virus" (named google10.php on some obscure domain, or so) which popped up a window with some three old fatty naked gays in a bathroom, constantly moving around a screen, and also triggering an endless confirmation loop when trying to close it. And I believe an ability to create such software IS a problem.

Wlroots?

Nope, because it doesn't employ much of the inter-component plumbing stuff too, and even the existing attempts like foreign windows management are being rejected by stakeholders of other mature compositors from being implemented beyond wlroots and included into the standard.

@X547
Copy link

X547 commented Jun 14, 2022

And I believe an ability to create such software IS a problem.

It is not a problem and can be fixed by switching workspace.

@bodqhrohro
Copy link

  1. The sound would still remain (yup, now you'll tell about per-app sound mixers).
  2. Why should a user have multiple workspaces just for the purpose of fighting such malware?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment