| Summary: | Wayland: Cursor hiding not working properly in Plasma (5.18.2) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Luis Caceres <lacaceres97> |
| Component: | video | Assignee: | 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 |
||
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.
|
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.