A Wayland/X11 question

Hello fellow Krita enthusiasts,

I recently upgraded my Linux Manjaro installation.
The new window manager is Wayland by default now and without an extra command line via console, its the only option available right now.
However, during working in Krita with my Wacom tablet, I noticed a strange behavior.
If you use the undo STRG-Z command, the cursor freezes and no matter what, it stays that way until you grab and move the mouse a bit.
I first thought it is a hardware problem, but I checked and everything is just fine.
After the reactivation of the X11 session, the problem went away and didn’t came back. So, my questions are; did someone else experienced something similar and is this a thing the Krita Development team should know or is the a topic for the Wayland folks?

Have a nice day and greetings from Germany.

Wayland is (unfortunately) not a single thing, it’s a bunch of separate implementations of a protocol. So which window manager are you actually using? Like, is it KDE Plasma or Gnome or something else?

And which version of Krita are you using? You can find that under Help → About Krita, it says it in the logo at the top right.

And how did you install Krita? Like, is it the AppImage from the website or is it through pacman or something else.

I’m using Manjaro KDE Plasma Version 6.5.4 and Krita 5.2.14 from the official repository, not as an AppImage.
As I wrote before, I have both options available, X11 and Wayland as well.
I switched between Wayland and X11 to check for the error to show up on both platforms.
It did not happened on X11, that’s why I assumed it might be an issue with Wayland.
To make sure its not the version of Krita I’m using, I downloaded the latest AppImage of Krita and tried to recreate the error with this instance of the program as well.
I was able to recreate the freezing of the cursor in both Krita from the Repo and in the AppImage as well.
It only happens if I chose the Wayland as the Window Manager.
Krita is functioning as expected in both cases under X11.
I’m pretty positive that the problem is Wayland, not Krita.

Yes, I’d argue that this is a problem in KDE Plasma. Krita 5.2.14 only supports X11, which means it’s running under XWayland emulation. Since it works on X11 proper but not under this emulation, it seems pretty clear where the cause is.

I don’t think there is something you or we can do about it in Krita, but it would be worth reporting it to KDE Plasma. They’re of course free to ask us if they need to know something about what Krita is doing.

(And don’t report it to the Wayland project. The problem is with KDE Plasma, not the Wayland protocol itself.)

Ah, I see.
I wasn’t aware of the technicalities of that matter.
To me it was obvious that Krita worked on X11 and doesn’t work on Wayland, ergo, Wayland is the problem.
This leads me to two questions, if I may.
As far as I know, more and more Distributions will drop XOrg and X11 in favor of Wayland.
If the KDE desktop is causing the trouble under Wayland, does that mean KDE is out of the question if I want to use Krita?
What Linux desktop environment is currently the best fit for working with Krita in your opinion?
I used Linux Mint Cinnamon and Manjaro Gnome, but I’m very much a fan of KDE and it would be very sad to not be able to use it anymore.

“Wayland” is just a protocol. If you have a problem with it, most of the time it’s going to be with whatever implements the protocol, not a problem with the protocol itself. So the problem isn’t “Wayland”, it’s “KDE Plasma under Wayland”.

KDE Plasma is probably the best option if you want to use Wayland. Krita is also part of KDE, so we have contact with each other to a degree and want things to actually work together. So you can report it to them and chances are it will get fixed one way or another. And for now, you can still use X11 and hope that Wayland will more functional once you get forced onto it. By that time, Krita 6 will be out for a while as well, which will have native Wayland support instead of running over XWayland, which will make a difference (hopefully for the better.)

And the same goes for the second question, KDE is probably the best option you have for using Krita.

1 Like

Thanks for clarifying things up for me. Fortunately I have the option to choose between X11 and Wayland, at least for now.

Greetings from Germany