Opened 3 years ago
Last modified 23 months ago
#13013 closed defect
[Backends] [SDL] Cursor is sticky around the edges on WAYLAND — at Version 1
Reported by: | vanfanel | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | Port: Linux |
Version: | Keywords: | Mouse, Sticky, Linux, Wayland, SDL2, Backend | |
Cc: | vanfanel | Game: |
Description (last modified by )
Hi there,
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:
https://github.com/libsdl-org/SDL/issues/4822