Bug 469773 - [xwayland] Pen cursor icon doesn't update properly, unless set to "No Cursor"
Summary: [xwayland] Pen cursor icon doesn't update properly, unless set to "No Cursor"
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.1.5
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-15 00:51 UTC by tomtomtomreportingin
Modified: 2024-06-05 01:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomtomtomreportingin 2023-05-15 00:51:49 UTC
SUMMARY
When running Krita through xwayland on a tablet screen, Krita's cursor icon doesn't seem to change properly between different states, unless the user has the Brush Cursor Icon setting set to "No Cursor". I have observed this behavior in both a Debian sid system and a Fedora 38 Live (USB) system, on a Wacom Cintiq 16.

STEPS TO REPRODUCE
1. Set Brush Cursor Icon setting to something other than "No Cursor", such as "Small Circle".
2. Put pen within tablet screen proximity.
3. Hold space, in attempt to pan.

OBSERVED RESULT
Hand pan icon does not override the brush cursor icon. An inverse way to reproduce buggy behavior is to hold space before putting the pen within tablet screen proximity, in which it will NOT update to the Small Circle icon when the pen moves within tablet screen proximity and panning is exited. The cursor overrides DO work properly when set to "No Cursor".

EXPECTED RESULT
All brush cursor overrides should work properly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Sid and Fedora 38
KDE Plasma Version: 5.27.2 and 5.27.4
KDE Frameworks Version: 5.103.0 and 5.104.0
Qt Version: 5.12.12 (Krita 5.1.5) and 5.15.7 (Krita nightly)
Comment 1 Halla Rempt 2023-05-15 00:53:13 UTC
I don't think we can do anything about that... Qt is responsible for selecting cursors.
Comment 2 tomtomtomreportingin 2023-05-16 14:00:52 UTC
Perhaps. Apparently I can reproduce the same issue in the also Qt-based Tahoma2D, using the same panning gesture.
Comment 3 tomtomtomreportingin 2023-07-22 05:40:58 UTC
Since the problem is mostly mitigated with "No Cursor", perhaps a hacky solution is possible?
Comment 4 Nicolas Fella 2024-01-20 15:18:53 UTC
For XWayland tablet cursors being broken on Plasma Wayland see https://bugs.kde.org/show_bug.cgi?id=480096
Comment 5 tomtomtomreportingin 2024-06-05 01:31:00 UTC
I've tried reproducing this again on my updated Debian sid system with nightly git d42fadb, and the issue no longer occurs.