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 - Wayland: Cursor hiding not working properly in Plasma (5.18.2)
Summary: Wayland: Cursor hiding not working properly in Plasma (5.18.2)
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-09 16:04 UTC by Luis Caceres
Modified: 2020-03-20 20:33 UTC (History)
1 user (show)

See Also:


Attachments
Example code (1.56 KB, text/plain)
2020-03-09 16:04 UTC, Luis Caceres
Details
Possible patch (3.88 KB, patch)
2020-03-09 16:14 UTC, Luis Caceres
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.