Bug 515618

Summary: [Wayland] On canvas popup widget stays at "mouse position" but not "stylus position" if triggered from keyboard shortcut.
Product: [Applications] krita Reporter: Protoniv <ss93078>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.0.0-beta1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video with popup palette and wide gamut color selector popup using keyboard

Description Protoniv 2026-02-06 13:41:45 UTC
Created attachment 189279 [details]
Video with popup palette and wide gamut color selector popup using keyboard

SUMMARY
Using keyboard shortcut to trigger on-canvas Popup widget (Color selector, Popup Palette, context menu), the widget will appears at the mouse position, not the stylus position.
If using the button on the stylus to trigger the widget, it will place at the stylus position.

STEPS TO REPRODUCE
1.export QT_QPA_PLATFORM=wayland to launch krita 6
2. Bind a keyboard shortcut (Q for example) to popup-palette, or use other popup widget like color selector (Shift+I, Shift+O)
3. Place mouse and drawing tablet cursor to different position.
4. Use keyboard shortcut to trigger the popup

OBSERVED RESULT
popup widget at mouse position

EXPECTED RESULT
popup widget should follow stylus, or "last used device"

OS Information
Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.12.63+deb13-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 8700G w/ Radeon 780M Graphics
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION
It might get fixed on Plasma 6.7 if these MR get merged.
https://invent.kde.org/plasma/kwin/-/merge_requests/8189
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3233
Comment 1 Dmitry Kazakov 2026-02-14 16:25:44 UTC
Git commit 228b821a90c989521c812c52fd86fd899d7c33b0 by Dmitry Kazakov.
Committed on 14/02/2026 at 16:25.
Pushed by dkazakov into branch 'transition.now/qt6'.

[qt][wayland] Implement handling of tablet events in QWaylandCursor

That fixes the work of QCursor::pos() when the user utilizes
a tablet device.
Related: bug 504546

M  +1    -1    ext_qt/CMakeLists.txt

https://invent.kde.org/packaging/krita-deps-management/-/commit/228b821a90c989521c812c52fd86fd899d7c33b0