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: REPORTED ---    
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