Report question

Question: How to determine if the current window is the active window?