We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5019

Summary: Wayland: Cursor hiding not working properly in Plasma (5.18.2)
Product: SDL Reporter: Luis Caceres <lacaceres97>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.1   
Hardware: x86_64   
OS: Linux   
Attachments: Example code
Possible patch

Description Luis Caceres 2020-03-09 16:04:31 UTC
Created attachment 4244 [details]
Example code

The attached code showcases this problem.
 1. Pressing 'h' to hide my custom cursor works for the first time, but if you move the pointer out of the window and then back inside the system cursor is shown and does not get hidden even if you press 'h' again.
 2. To hide the cursor, I have to press 's' to show my custom cursor and then press 'h' to hide it again.
Comment 1 Luis Caceres 2020-03-09 16:14:46 UTC
Created attachment 4245 [details]
Possible patch

I'm unsure if this is a Plasma bug or an SDL2 bug, but in any case, this patch fixes things for me so the cursor gets automatically "hidden" after the pointer leaves and enters the window again.

This patch works by creating a transparent 1x1 cursor that gets passed to wl_pointer_set_cursor whenever the user requests the cursor to be hidden. The previous code passed a null pointer in this case.