X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=bb28e127eae468ce34303bc5fe507ca545f38aae;hb=ee0895b12e544444db37febb1242bcc8a72d6ad8;hp=fc6140fc84a0c959d5eaaeb5966acdd1c3fa2d95;hpb=c9433eab5c4317ed4f89164b386a7d33562e29be;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index fc6140fc..bb28e127 100644 --- a/src/events.c +++ b/src/events.c @@ -126,7 +126,11 @@ void HandleOtherEvents(Event *event) break; case EVENT_UNMAPNOTIFY: +#if 0 + /* This causes the game to stop not only when iconified, but also + when on another virtual desktop, which might be not desired. */ SleepWhileUnmapped(); +#endif break; case EVENT_FOCUSIN: @@ -871,6 +875,10 @@ void HandleJoystick() HandleHelpScreen(!newbutton); break; + case LEVELED: + HandleLevelEditorIdle(); + break; + case PLAYING: if (tape.playing || keyboard) newbutton = ((joy & JOY_BUTTON) != 0);