I have a fullscreen Windows game that I'm working on. And today I saw an indie game (made in XNA) have the following behavior: when it is the focused window it will Update() and Draw() but when it gets minimized it stops both of these and waits for the user to make it the top window again. Essentially I'm looking for a way to kind of "pause" the entire game loop while the game window is minimized and "resume" it from where it stopped when the game gets focused again. This would mean that if I minimize my game and open my browser, for instance, when I left click, the game GUI logic wouldn't register that and open a window or whatever. Thanks in advance!