Bug 477570 - When using a stylus the cursor is shown as a cross when hovering over native-Wayland Qt software
Summary: When using a stylus the cursor is shown as a cross when hovering over native-...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL: https://bugreports.qt.io/browse/QTBUG...
Keywords:
: 493352 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-26 16:32 UTC by Raghavendra kamath
Modified: 2024-09-24 13:48 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: Qt 6.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2023-11-26 16:32:48 UTC
SUMMARY
I tried wayland and kde plasma with neon-unstable-20231119-1118 iso and when I tried to use the desktop my cursor when using a graphic tablet was a cross shape. It changed to adwaita arrow inside firefox and then normal plasma breeze arrow inside xwayland application.

This results in fairly inconsistency cursor ideally all the cursor should be of one family. If the goal is to differentiate various devices then all app should use the same cursor while using that device and there should be more p[leasant cursor instead of a cross cursor for other device perhaps a cursor with slight variation in value like gray etc.


STEPS TO REPRODUCE
1. Download neon-unstable-20231119-1118 iso 
2. Login to plasma desktop 
3. use any graphic tablet and observe the cursor 

OBSERVED RESULT
Cursor should be normal plasma cursor

EXPECTED RESULT
Cursor is now a cross cursor.
Comment 1 Nate Graham 2023-11-29 21:58:24 UTC
Can reproduce the cursor being a cross in native Wayland Qt apps.
Comment 2 Raghavendra kamath 2023-11-30 05:39:57 UTC
In addition to the odd cursor the cursor also doesn't change to show grab handles and other things. So it becomes hard to grab a window and resize it while using a tablet.
Comment 3 Nicolas Fella 2023-12-16 21:14:51 UTC
Technically speaking it's up to the application to provide a (tablet) cursor image. That means some amount of inconsistencies are likely unavoidable.

Qt doesn't seem to specify a tablet cursor at all, so KWin uses the fallback crosshair cursor. Changing that to another xcursor shape would be trivial.

Personally speaking I kind of like the crosshair cursor though
Comment 4 Raghavendra kamath 2023-12-17 06:39:46 UTC
The cursor doesn't change when hovering over the edge of the window so resize and other operations become troublesome. Also I think applications do provide cursors like firefox provides adwaita cursors. krita will provide the tool cursor I think But on the desktop the crosshair cursor as a default is not so much useful in my opinion. If the user needs they should be able to choose it I think.
Comment 5 Nicolas Fella 2024-01-20 15:17:32 UTC
See also https://bugreports.qt.io/browse/QTBUG-105843
Comment 6 Nate Graham 2024-09-19 18:49:56 UTC
*** Bug 493352 has been marked as a duplicate of this bug. ***