Not responding?

Hm so the problem I have is my game is not responding after a certain amount of time not being active (I mean window). After I refocus the window after certain periods of time, the game is not responding for some time. If the game was not focused for short amount of time, my game will start responding again after 2 seconds or something. But if the game was not focused for longer periods of time, after I focus it again, it isn’t responding and I need to cut the thread from inside eclipse to stop the game.

I thought this might be because I’m using VBO’s. Maybe they get deleted after some time or something?

EDIT:
It seems when I’m rendering when display is not active causes this not responding problem. When I stopped rendering when display is inactive, the problem went away.