Enigma-Game / Enigma

Enigma is a puzzle game inspired by Oxyd on the Atari ST and Rock'n'Roll on the Amiga. The object of the game is to find uncover pairs of identically colored Oxyd stones. Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams, and, most of all, countless hairy puzzles usually block your direct way to the Oxyd stones …
GNU General Public License v2.0
134 stars 38 forks source link

Loss of Mouse-Focus after switching away to different App. #83

Open sprintersb opened 1 year ago

sprintersb commented 1 year ago

When I just started Enigma and am playing in some level, then Enigma "captures" the mouse, i.e. no matter how "far" I am moving my mouse, no mouse pointer will appear outside of Enigma's window. This is fine and required to be able to play the game with a mouse as input device.

However, when I am switching to a different app (e.g. to email-program by means of task-switcher) and then return to Enigma, then moving the mouse will finally move the mouse pointer out of the Enigma window, so that reasonable game play is no more possible.

One fix is to "Abort Level", then select "Level Pack", and then go to the desired level. As it seems, just "Abort Level" without going through "Level Pack" (or "Main Menu") is not always enough to restore mouse capture.

I am observing this with Enigma v1.30, built from a Enigma-1.30-src.tar.gz source distribution. I configured in-tree with no special options except custom --prefix. Host is:

> cat /proc/version
Linux version 5.11.0-27-generic (buildd@lcy01-amd64-019)
(gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34)
#29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021

Desktop Manager is "Xfce 4.16 distributed by Xubuntu".

Enigma Settings:

cloudrac3r commented 1 year ago

See issue #56. If you build from this git repo then it'll include this commit you'll have a fixed version, but version 1.30 is from the year 2021 and grabbing the mouse was broken back in that version. Looks like there's no officially released version that includes the fix yet.