Bug 510104 - Middle and Right click not working on the pen buttons
Summary: Middle and Right click not working on the pen buttons
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (other bugs)
Version First Reported In: 5.2.13
Platform: KDE Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-30 17:05 UTC by Julien Kaspar
Modified: 2025-12-26 10:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Kaspar 2025-09-30 17:05:39 UTC
SUMMARY
I’ve only run into this maybe for a few weeks. I though it would get fixed.
I would love to trouble shoot this issue. Does anyone else encounter this?
How do wayland users deal with using Krita?

Essentially: When pressing the side buttons on the pen, which are mapped to Middle Mouse and Right Mouse, it doesn’t work properly.

- When trying to pan or zoom on the canvas, it doesn’t do 
- When scrolling lists in the UI, it does work only after letting go of the pen button, which seems to trigger the leftover inertia for scrolling. But while holding the button the UI doesn’t 
- When trying to rebind the shortcuts in the preferences it does correctly register the pen buttons as Middle Mouse and Right Mouse

STEPS TO REPRODUCE
1. Open Krita
2. Try to navigate

OBSERVED RESULT
No mouse click is registered

EXPECTED RESULT
Navigation

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon  780M Graphics
Memory: 32 GiB of RAM (30.6 GiB usable)
Graphics Processor: AMD Radeon 780M Graphics
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen 7040Series)
System Version: A7

ADDITIONAL INFORMATION
I tried various versions and distributions of Krita. As an appimage, flatpack, snap. Various versions from 5.2.11 which I'm currently using to the latest nightly build of 5.3.0

It seems like a more general issue with wayland on Fedora? When I tried it on a Gentoo work machine it worked fine on wayland.
I would love to get some info in how to troubleshoot what the cause of this is.
Comment 1 Halla Rempt 2025-09-30 17:47:42 UTC
So, if it works on Gentoo/Wayland, but not Fedora/Wayland, it's a Krita bug? I think it's more like Wayland is still a bit immature.
Comment 2 Julien Kaspar 2025-09-30 18:08:27 UTC
I wasn't sure what to tag with this report. Since Krita is the only software that has this issue as far as I can see and it's only on my Fedora machine, is it a Krita bug or a Fedora Wayland bug?
Either way it's a KDE bug so I reported it.

No matter that, as it stands right now Krita very hard to use as a result. And maybe troubleshooting this bug could lead to improvements on xWayland?
Comment 3 Julien Kaspar 2025-12-26 10:27:35 UTC
I was able to fix it recently. Turns out the system config for my tablet had the side buttons of the pen assigned to mouse buttons instead of the pen buttons. Krita really doesn't like mixing input buttons like that and often becomes unresponsive.

Since the tablet settings interface was fixed recently I was finally able to reset it to the defaults and now it works fine.