Bug 461001

Summary: Restoring cursor visibility fails with Blender on Wayland with Tablet events
Product: [Plasma] kwin Reporter: Campbell Barton <ideasman42>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR Keywords: wayland
Version: 5.26.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Campbell Barton 2022-10-25 22:23:31 UTC
On Blender, restoring cursor visibility fails, leaving the cursor entirely hidden.


STEPS TO REPRODUCE

Note that I have worked around this bug in Blender, see:

- To reproduce this bug, use a Blender build without the workaround, SHA1 `c4f9e4afab8c51e271fc6a313ccd2dd0b8d3186c` (using Blender's source with `make lite` is sufficient, or I can provide a build from our build-server if that's preferable).
- The issue has been worked around in `78b13ab3db70cca977585e29407445d2d1502fbf` (https://developer.blender.org/rB78b13ab3db70cca977585e29407445d2d1502fbf), which might give a hint to how this can be fixed.

**Exact steps for others to reproduce the error**
1. Load up default cube scene `blender --factory-startup`
2. Switch to the "Rotate tool" (on the left hand tool bar, 4th tool down from the top)
3. Use a tablet to click on the rotate gizmo and do some rotation.
4. Position the tablet cursor so it is not on the gizmo when the tablet press is released.
5. The mouse cursor is now hidden (UNEXPECTED BEHAVIOR)

OBSERVED RESULT

The cursor remains hidden on releasing the tablet press.

EXPECTED RESULT

The cursor should be visible (the default arrow cursor) when releasing the tablet press.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 5.26.1
KDE Plasma Version: 5.26.1
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION

- This seems like a bug as it only happens with tablet events, not mouse events.
- This issue doesn't occur in Gnome-shell (mutter 42.5).
- This is the up-stream bug report: https://developer.blender.org/T102048