SDL_APPACTIVE & WinXP

Is it possible that SDL_APPACTIVE is not being sent correctly
in WinXP? I added some code to stop the mixer when the game loses
focus and resume it when it gains focus; it works OK in Linux and
in Windows98 but it doesn’t seem to work in WindowsXP. Can anyone
confirm this?

Ing. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy

Is it possible that SDL_APPACTIVE is not being sent correctly
in WinXP? I added some code to stop the mixer when the game loses
focus and resume it when it gains focus; it works OK in Linux and
in Windows98 but it doesn’t seem to work in WindowsXP. Can anyone
confirm this?

Are you not getting any events at all? Remember that the app active
event contains a mask of what type of focus you are getting.

If you just aren’t getting any events, can you make sure the problem
happens with testwm in the SDL test directory?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Using testwm, I retested my SDL_APPACTIVE problem and the problem is still
there.
Here is how I ran my test case:

Since I am on Win2000 (using 1.2.6) I needed to change how the full screen
gets toggled since SDL_WM_ToggleFullScreen doesn’t work on Windows:

void HotKey_ToggleFullScreen(void)

{

   video_flags =  SDL_GetVideoSurface()->flags ^= SDL_FULLSCREEN;    //

I moved the static variable video_flags to the top of the file

   SetVideoMode(640, 480);

}

The problem only occurs after going into full screen mode and back to
windowed again.

The SDL_APPACTIVE never comes in with the APPMOUSEFOCUS flag set, although
it does arrive with input focus and app focus.

(I do know that it is a bitmask - that part of the code didn’t change.)

Thanks for looking into this!

–Warren Schwader> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Saturday, February 14, 2004 1:02 PM
Subject: Re: [SDL] SDL_APPACTIVE & WinXP

Is it possible that SDL_APPACTIVE is not being sent correctly
in WinXP? I added some code to stop the mixer when the game loses
focus and resume it when it gains focus; it works OK in Linux and
in Windows98 but it doesn’t seem to work in WindowsXP. Can anyone
confirm this?

Are you not getting any events at all? Remember that the app active
event contains a mask of what type of focus you are getting.

If you just aren’t getting any events, can you make sure the problem
happens with testwm in the SDL test directory?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Using testwm, I retested my SDL_APPACTIVE problem and the problem is still
there.

This is fixed in CVS.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Thanks Sam! It works.
–Warren Schwader> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Sunday, February 15, 2004 3:00 PM
Subject: Re: [SDL] SDL_APPACTIVE & WinXP

Using testwm, I retested my SDL_APPACTIVE problem and the problem is
still

there.

This is fixed in CVS.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl