# HG changeset patch # User Patrice Mandin # Date 1120750178 0 # Node ID 67b7f0f410a226534da6e11d850676576af5564c # Parent 37fc855580affb2ed7118979490b6273de344a7e Correctly process top/bottom event messages diff -r 37fc855580af -r 67b7f0f410a2 src/video/gem/SDL_gemevents.c --- a/src/video/gem/SDL_gemevents.c Thu Jul 07 15:06:38 2005 +0000 +++ b/src/video/gem/SDL_gemevents.c Thu Jul 07 15:29:38 2005 +0000 @@ -248,6 +248,8 @@ break; case WM_TOPPED: wind_set(message[3],WF_TOP,message[4],0,0,0); + /* Continue with TOP event processing */ + case WM_ONTOP: SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS); if (VDI_setpalette) { VDI_setpalette(this, VDI_curpalette); @@ -312,8 +314,9 @@ } break; case WM_BOTTOMED: + wind_set(message[3],WF_BOTTOM,0,0,0,0); + /* Continue with BOTTOM event processing */ case WM_UNTOPPED: - wind_set(message[3],WF_BOTTOM,message[4],0,0,0); SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS); if (VDI_setpalette) { VDI_setpalette(this, VDI_oldpalette);