[Scummvm-tracker] [ScummVM :: Bugs] #13013: [Backends] [SDL] Cursor is sticky around the edges on WAYLAND

ScummVM :: Bugs trac at scummvm.org
Sun Oct 17 10:26:35 UTC 2021


#13013: [Backends] [SDL] Cursor is sticky around the edges on WAYLAND
-------------------------+-------------------------------------------------
Reporter:  vanfanel      |      Owner:  (none)
    Type:  defect        |     Status:  new
Priority:  normal        |  Component:  Port: Linux
 Version:                |   Keywords:  Mouse, Sticky, Linux, Wayland,
    Game:                |  SDL2, Backend
-------------------------+-------------------------------------------------
 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.

 I have opened a thread on SDL2 development repository to discuss this
 issue, and SDL2 WAYLAND backend devs apparently think that
 SDL_WarpMouseInWindow() shouldn't be used:
 https://github.com/libsdl-org/SDL/issues/4822
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/13013>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list