Rewrite window raise logic to be more readable and to avoid log spam for the obscurer window.
Rewrite window raise logic to be more readable and to avoid log spam for the obscurer window.

google/xsecurelock,google/xsecurelock