[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:27:31 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:                                        |  Resolution:
Keywords:  Mouse, Sticky, Linux, Wayland, SDL2,  |        Game:
  Backend                                        |
-------------------------------------------------+-------------------------
Description changed by vanfanel:

Old description:

> 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

New description:

 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

--
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/13013#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list