dreamer / boxtron

Steam Play compatibility tool to run DOS games using native Linux DOSBox
https://luxtorpeda.gitlab.io/
GNU General Public License v2.0
406 stars 5 forks source link

Mouse stops working when touching top edge of the screen in fullscreen #7

Closed dreamer closed 5 years ago

dreamer commented 5 years ago

This is not a bug in steam-dos, this issue exists to track down which software is responsible and track the fix.

This is annoying issue, that I experience in practically any DOSBox game (when using steam-dos or just native dosbox through Steam) and also in some other games (OpenTTD - only when started through Steam).

To reproduce this bug:

Start a game using dosbox with following options:

[sdl]
fullscreen=true
fullresolution=desktop
output=opengl

(these are defaults for steam-dos)

After the game starts, keep moving mouse towards top-left corner of the screen. At some point cursor will "bounce back" and top side of the screen won't be reachable any more. In FPS games (e.g. Doom) the mouse will simply stop working until you move the mouse significantly towards lower edge of the screen.

This makes DOS games rather unplayable (in action games your controls occasionally don't work, in strategy games parts of UI are unreachable).

Initially I thought it was a DOSBox bug or perhaps SDL bug (because I could reproduce it in OpenTTD), but it doesn't seem to be the case.

I can reproduce this bug in:

I tried and cannot reproduce it in:

Enabling/disabling Steam Overlay does not affect the outcome.

dreamer commented 5 years ago

… aaand the problem fixed itself after upgrading to Gnome 3.32.