drawBackground() get called every time whenever your window painted, means when ever you move window or resize..