[WIP] Convert FOR_ALL_WINDOWS to use a locally declared pointer

Nope. People take advantage of that fact all over the codebase too, so that will be fun...