Revert "Try another approach to hiding the completion window"

This reverts commit 9d13c49130bb8535c54ad33b1e1c9ddf74116120.