Fixed focus comptability bug

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402206
This commit is contained in:
Sam Lantinga 2006-10-28 16:41:08 +00:00
parent da664292cc
commit fa0d6bd068

View file

@ -212,7 +212,7 @@ SDL_CompatEventFilter(void *userdata, SDL_Event * event)
break;
case SDL_WINDOWEVENT_FOCUS_LOST:
fake.type = SDL_ACTIVEEVENT;
fake.active.gain = 1;
fake.active.gain = 0;
fake.active.state = SDL_APPINPUTFOCUS;
SDL_PushEvent(&fake);
break;