Better system to disable events when window not in focus.