Revert "Call windows by ids instead of dumb hack"

This reverts commit 2c0406a3d8254d822fe439938e19d0070d1227f1.