Any idea why the following might not be working as intended at least
on Windows 7? (I had heard of similar issues maybe on Linux)
case SDL_ACTIVEEVENT:
if (e.active.state & SDL_APPINPUTFOCUS) {
// Do things when unfocused
}
if (e.active.state & SDL_APPACTIVE) {
// Do other things when minimized.
}
break;
Namely, very often the app ignores the minimizing event. Rarely I see
it not being ignored and working properly.
nevermind, ignore, it was a local issue.On Tue, Nov 9, 2010 at 6:58 AM, Michael Menegakis <@Michael_Menegakis> wrote:
Any idea why the following might not be working as intended at least
on Windows 7? (I had heard of similar issues maybe on Linux)
? ? ? ? ? ? ? ? ? ? ? ?case SDL_ACTIVEEVENT:
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (e.active.state & SDL_APPINPUTFOCUS) {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Do things when unfocused
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (e.active.state & SDL_APPACTIVE) {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Do other things when minimized.
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break;
Namely, very often the app ignores the minimizing event. Rarely I see
it not being ignored and working properly.