windows: Fix regression introduced by a prev PR (#13090)

Fix regression introduced by #12991 

### Before

The re-position and re-size of a window is broken.


https://github.com/zed-industries/zed/assets/14981363/d4fb9dce-707e-4ab1-9ff5-f355b7fdd8a8

### After



https://github.com/zed-industries/zed/assets/14981363/7fd232e6-ff6c-4b7f-ad32-c284acd4f6db




Release Notes:

- N/A
e19627d92f张小白 committed on 6/17/2024, 7:01:35 PM· committed by GitHubparentbb75d87
4 files changedLine totals unavailable