Skip to content

Commit

Permalink
Correctly process top/bottom event messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jul 7, 2005
1 parent 27aebec commit 54b4de4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/gem/SDL_gemevents.c
Expand Up @@ -248,6 +248,8 @@ static int do_messages(_THIS, short *message)
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);
Expand Down Expand Up @@ -312,8 +314,9 @@ static int do_messages(_THIS, short *message)
}
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);
Expand Down

0 comments on commit 54b4de4

Please sign in to comment.