I have been troubleshooting certain issues on development-version Plasma. These issues didn’t affect Debian’s Plasma packages; this is apparently because Debian’s kwin-wayland package has a dependency on xwayland. Contrarily, installing development Plasma doesn’t require installing XWayland.
If it is intended to be possible to run Plasma without XWayland, I intend to file a bug report regarding my issues.
I doubt the problem is with libraries, because KWin builds fine. Yet, you are right that on Debian, kde-builder installs no XWayland dependencies, but xorg-x11-server-Xwayland is required on Fedora.
Are you sure that Fedora’s xorg-x11-server-Xwayland contains libraries? Debian’s xwayland package only contains a single executable.
It seems that it’s a packaging decision to force the install of Xwayland on Fedora.
I’m guessing that this is on the assumption that most users get a better experience with it install as there are apps that only support X11 that are important still.
You can stop Xwayland from starting up by adding an override to the like this:
Okay, TIL that XWayland is just a binary, it doesn’t provide any accompanying libraries and KWin just checks if the binary exists. repo-metadata/distro-dependencies is probably pulling it implicitly via another dependency.
It should, it’s just finding the binary instead (which you are very likely to have on your system).
No, XWayland isn’t installed; apt list --installed | grep -i xway doesn’t output anything. (The development Plasma installation is on a virtual machine, which is based on an image I downloaded from Debian’s website. I have already reported some issues that arose from repo-metadata leaving out dependencies which are commonly pre-installed, but weren’t present on the VM.)
I activated a dropdown selector on the login screen to switch between wayland and X11, so wayland isnt’t neccessarily required. Some apps might not work without wayland though.
The OP wants wayland but not the X11 Wayland server, Xwayland which is not what you get when you choose X11 as a login option. Further that option is going way in 6.8.
Probably so others don’t experience the problems you had, yeah. But…
I just noticed that the find_package() call does not use REQUIRED, and you said above that KWin builds fine without the xwayland binary (a.k.a. it passes the KWIN_BUILD_X11=ON check).
A bug report to KWin detailing the specific issues you’ve had without XWayland makes sense since apparently XWayland is not a hard requirement for KWin like I previously thought.
It could also be that kwin_wayland binds the Xserver socket but only launches XWayland on demand.
In this case the X11 client would be able to initiate the connect but KWin can’t start XWayland and hand over the socket for actual connection processing.