Add logging for window focus