SUMMARY When using a graphics tablet pen to control the cursor, the cursor often does not update its appearance correctly when interacting with UI elements that should change it (For example, selecting tools in GIMP, resizing windows, etc) The precise behavior depends on the application: - In GIMP (GTK2), the cursor's appearance will not update until the pen is removed from the tablet completely (causing the cursor to disappear) and brought back into range. - In QT applications such as Dolphin, the cursor always appears as a crosshair, regardless of what is being done. Removing the pen from the tablet has no effect. - The cursor behaves correctly in Firefox, Chrome and the GTK3 Beta of GIMP STEPS TO REPRODUCE 1. Launch GIMP with a graphics tablet connected 2. Create a new image 3. Select a tool using the tablet pen's cursor OBSERVED RESULT The cursor's appearance does not update to reflect the tool selection. EXPECTED RESULT The cursor's appearance updates to reflect the tool selection. SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.91.90 KDE Frameworks Version: 5.248.0 Qt Version: 6.6.1 Kernel Version: 6.2.0-39-generic (64-bit) Graphics Platform: Wayland Processors: 16 × Intel® Core™ i9-9900K CPU @ 3.60GHz Memory: 31.1 GiB of RAM Graphics Processor: llvmpipe ADDITIONAL INFORMATION This issue only occurs in the Wayland session. The shared cursor in X11 session does not suffer from this problem. I am using a Wacom Intuos Art Small, CTH-490/K
Created attachment 164850 [details] Example of cursor behavious when using a mouse Please ignore the laggy appearance of the cursor, that's an issue with the screen recording, cursor movement was smooth in practice.
Created attachment 164851 [details] Example of cursor behaviour when using a tablet pen Please ignore the laggy appearance of the cursor, that's an issue with the screen recording, cursor movement was smooth in practice.
Setting an appropriate tablet cursor is up to the application / toolkit. It not changing to a resize cursor when windows are resized is something we can fix though
And we need to fix Qt, which we should take care of
Upon further investigation, the GIMP issue I noticed in the original summary (where the cursor does not update until the pen is removed and brought back into range) actually occurs in all XWayland applications, such as Wine. I also noticed that the issue does not occur when using Wine's experimental Wayland driver. I very briefly tried GIMP on a Fedora with Gnome live USB and could not reproduce the issue. Would this point to an issue in Plasma, or perhaps XWayland?
There's a few different issues here: - Wayland-native Qt applications only having a crosshair cursor is https://bugreports.qt.io/browse/QTBUG-105843 - XWayland windows having broken cursor shapes: https://bugs.kde.org/show_bug.cgi?id=480096 - Other toolkits may have their own bugs