The 'window_focus' variable would probably be neater.