[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Enigma-devel] Stuck in Game Menu forever

From: Andreas Pickart
Subject: [Enigma-devel] Stuck in Game Menu forever
Date: Tue, 28 May 2019 15:34:48 +0200
User-agent: NeoMutt/20170113 (1.7.2)

Dear Enigma Developers,

first of all a big Thanks for this great free Game!

When i recently upgraded my System from Debian stable (jessie) to
testing (buster), i suddenly was always stuck in the Enigma Game-Menu as
soon as i entered it. When i got out of the Menu with the Escape-Key, or
by selecting „Resume Level“, „Restart Level“ or „Abort Level“ with the
Mouse, the Game-Menu immediately popped up again. This only happened
when the Game was in windowed Mode, though, not when in Fullscreen. This
Behaviour happens both with Enigma v1.20 stable and with Enigma v1.21 from
the current GIT.

I figured i could fix this Issue by just commenting out the Handling of
SDL_ACTIVEEVENT with this trivial Patch:

diff --git a/src/client.cc b/src/client.cc
index 48e82bfd..bbb65641 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -208,8 +208,8 @@ void Client::handle_events() {
         case SDL_MOUSEBUTTONUP: on_mousebutton(e); break;
         case SDL_ACTIVEEVENT: {
-            if (e.active.gain == 0 && !video::IsFullScreen())
-                show_menu(false);
+//            if (e.active.gain == 0 && !video::IsFullScreen())
+//                show_menu(false);

I have no Idea what changed in SDL regarding Mouse-Focus, but i noticed
by looking at another System with Debian stable without this Bug, that
Enigma only links to „libSDL-1.2.so.0“ there, while my current testing-
System with the described Bug links to „libSDL-1.2.so.0“ as well as to
„libSDL2-2.0.so.0“. I am _guessing_ that the new libSDL-1.2 is now just
some Compatibility-Layer around libSDL2.

Best regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]