sdl12-compat icon indicating copy to clipboard operation
sdl12-compat copied to clipboard

Fuse ZX Spectrum emulator: mouse grab after returning from full screen

Open bertogg opened this issue 2 years ago • 0 comments

I have been testing the Fuse ZX Spectrum emulator with sdl12-compat and although it seems to work perfectly for the most part I noticed one difference when compared to the pure SDL1 version.

This can be tested with Debian bookworm or testing/sid.

  1. Install fuse-emulator-sdl and libsdl1.2-compat
  2. Run LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/sdl12-compat fuse-sdl -g 3x (the -g 3x option is only used to scale the screen, otherwise it will look very small on a modern display).
  3. If you see a warning about a missing Spectrum ROM simply press enter.
  4. Now you should see the initial Spectrum screen (an empty window with a copyright message).
  5. Observe that you can move the mouse pointer around the screen normally.
  6. Switch to full screen mode by pressing F4, then s, then enter.
  7. Switch back to windowed mode by pressing again F4, then s, then enter.
  • Expected behavior: you should be able to move the mouse pointer the same as before.
  • Observed behavior: the mouse pointer is trapped inside the Fuse window. You can still press alt-tab to change the active window and then move the pointer to another position, but as soon as it goes inside the Fuse window it will be trapped again.

You can close the emulator by pressing F10.

If you run fuse-sdl without the compat layer (i.e. without LD_LIBRARY_PATH) this problem doesn't happen.

bertogg avatar Jun 27 '23 15:06 bertogg