Main Window Lost Focus

Hello.

Just got a little problem with the case, when the user do ALT+TAB on
windows system, when you come back to the game, this is a totally weird
interface.

So I search a bit and find a code in the BlitSurface doc, but the problem
is that it did not work, in fact it run in loop and do not stop.

So my question is to know if this code is good, or if there is a way to
disallow ALT+TAB even if I would prfer to avoid this.

Thanks for your help.

Wedge