# Krita stylus fix: Wayland workaround for Linux

> Krita stylus broken on XWayland 24110  Wayland workaround  Internal KB  Linux Support Applies to  Krita 601  apt on Ubuntubased distros The fix route

Source: https://knowledgebase.frame.work/en_us/krita-wayland-HJAxmNhDMx

Last updated: 2026-08-26T09:49:12.324Z

Applies to Framework Laptop 12 models running apt-installed `Krita 6.0.1` on Ubuntu-based distros. The fix forces Krita onto the native Wayland backend so it never touches the buggy XWayland tablet path.

Use the apt package, not the snap. The snap build of Krita is on an older release and won't match the steps below.

## Summary

On Ubuntu-based distros, the apt-packaged Krita 6.0.1 runs under XWayland by default inside a Wayland session. XWayland 24.1.10 has a bug that breaks graphics tablet/stylus input inside Krita. Pressure, hover, and button events don't come through correctly.

It's fixed upstream in XWayland 24.1.11, but Ubuntu-based repos don't carry that version yet. Until they do, the fix has to happen on the Wayland side: force Krita to launch as a native Wayland client instead of going through XWayland at all. With Krita off XWayland entirely, the buggy tablet path is never exercised.

## Wayland workaround

Create your local application-overrides folder. A file here takes precedence over the matching one in `/usr/share/applications` without touching the system package.

mkdir -p ~/.local/share/applications

Generate a Wayland-forced copy of Krita's launcher. This rewrites the `Exec=` line to set `QT_QPA_PLATFORM=wayland` before starting Krita.

sed 's/^Exec=krita/Exec=env QT\_QPA\_PLATFORM=wayland krita/' /usr/share/applications/org.kde.krita.desktop > ~/.local/share/applications/org.kde.krita.desktop

Launch Krita from the application menu, like you would otherwise. No logout is needed. Krita now starts as a native Wayland client, and the stylus will report pressure and hover correctly.

Requires a Wayland session: this only matters when logged into a Wayland session.

## Reverting

Once the distro ships XWayland 24.1.11 or later, remove the local override so Krita goes back to its default launcher:

rm ~/.local/share/applications/org.kde.krita.desktop
