Opened 17 months ago
Closed 10 months ago
#13013 closed defect (fixed)
BACKENDS: SDL: Cursor is sticky around the edges on WAYLAND
|Reported by:||vanfanel||Owned by:||ccawley2011|
|Version:||Keywords:||Mouse, Sticky, Linux, Wayland, SDL2, Backend|
Description (last modified by )
I have recently been using Scummvm (latest GIT code build) on WAYLAND, the new graphics server currently becoming the default on many GNU/Linux distros by now.
The problem is that the mouse cursor in fullscreen mode, when a game doesn't fill the entire screen area, is sticky around the edges.
That happens because the internal cursor position goes beyond the game area, which shouldn't happen.
Scummvm uses SDL_WarpMouseInWindow() to avoid this, which seems to be non-working on WAYLAND, hence the problem happens.
There's also a thread on SDL2 development repository to discuss this Scummvm issue, and SDL2 WAYLAND backend devs apparently think that SDL_WarpMouseInWindow() shouldn't be used:
Change History (3)
comment:1 by , 17 months ago
comment:2 by , 17 months ago
|Summary:||[Backends] [SDL] Cursor is sticky around the edges on WAYLAND → BACKENDS: SDL: Cursor is sticky around the edges on WAYLAND|
comment:3 by , 10 months ago
|Status:||new → closed|
This should be fixed in current master.
The PR #3546 handles the problem.