SDL can handle Win+L (Workstation Lock) correctly?

View: New views
2 Messages — Rating Filter:   Alert me  

SDL can handle Win+L (Workstation Lock) correctly?

by fungos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm receiving QA issues from a game portal and they are asking to fix
the handling of Workstation Lock of our game. What happens is that the
game (OpenGL) is fullscreen and when the user hits Win+L the "lock"
screen will keep the game resolution and not the desktop resolution.
By testing with ALT+TAB and just pressing Win key, everything works,
when switching off the game, the desktop will restaure its default
resolution but not for the Locked screen.

Anyone has any idea how to fix this? Is that SDL responsability? How
do you managed to handle this case?


Thank you!
Danny

--
Animal Liberation Front
http://www.animal-liberation.com/
_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: SDL can handle Win+L (Workstation Lock) correctly?

by Kenneth Bull :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/30 fungos <fungos@...>:
> I'm receiving QA issues from a game portal and they are asking to fix
> the handling of Workstation Lock of our game. What happens is that the
> game (OpenGL) is fullscreen and when the user hits Win+L the "lock"
> screen will keep the game resolution and not the desktop resolution.
> By testing with ALT+TAB and just pressing Win key, everything works,
> when switching off the game, the desktop will restaure its default
> resolution but not for the Locked screen.

Kinda sounds like a Windows bug rather than an SDL bug.  Windows
manages the display and application resolution, so when switching away
from the application, for any reason, it should be able to handle the
resolution change itself...

On the other hand, see here:
How to Lock the Workstation
http://msdn.microsoft.com/en-us/library/aa376869(VS.85).aspx

and here:
WM_WTSSESSION_CHANGE Message
http://msdn.microsoft.com/en-us/library/aa383828(VS.85).aspx
_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org