fix hidden windows that start reappearing when the screen is resized.