Bug 461001 - Restoring cursor visibility fails with Blender on Wayland with Tablet events
Summary: Restoring cursor visibility fails with Blender on Wayland with Tablet events
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.26.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-10-25 22:23 UTC by Campbell Barton
Modified: 2022-10-26 19:05 UTC (History)
1 user (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 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