Stuck in Game Menu forever

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Stuck in Game Menu forever

Andreas Pickart
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: {
             update_mouse_button_state();
-            if (e.active.gain == 0 && !video::IsFullScreen())
-                show_menu(false);
+//            if (e.active.gain == 0 && !video::IsFullScreen())
+//                show_menu(false);
             break;
         }
 

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,

APic

_______________________________________________
Enigma-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/enigma-devel