Revert "window fix"

This reverts commit 30c30905331b1f1174d46a542b8a0a9d7ea4fb8b.