Fixed an issue where snapped windows aren't correctly snapped when minimized and then unminimized. #48437 (Also in 39)