[RDY] Convert FOR_ALL_WINDOWS to use a locally declared pointer