Fixed focus comptability bug
authorSam Lantinga <slouken@libsdl.org>
Sat, 28 Oct 2006 16:41:08 +0000
changeset 205838148947fdcf
parent 2057 c2fed8bb6700
child 2059 4685ccd33d0e
Fixed focus comptability bug
src/SDL_compat.c
     1.1 --- a/src/SDL_compat.c	Sat Oct 28 07:49:19 2006 +0000
     1.2 +++ b/src/SDL_compat.c	Sat Oct 28 16:41:08 2006 +0000
     1.3 @@ -212,7 +212,7 @@
     1.4              break;
     1.5          case SDL_WINDOWEVENT_FOCUS_LOST:
     1.6              fake.type = SDL_ACTIVEEVENT;
     1.7 -            fake.active.gain = 1;
     1.8 +            fake.active.gain = 0;
     1.9              fake.active.state = SDL_APPINPUTFOCUS;
    1.10              SDL_PushEvent(&fake);
    1.11              break;