-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unexpected resize when move window to secondary monitor if dpi diff in Windows 11 24H2 #4041
Comments
I also noticed this. The issue disappears if you remove winit/src/platform_impl/windows/event_loop.rs Lines 2424 to 2551 in 5462f27
Cursory testing did not reveal any adverse effects from removing that snippet. Edit: If the monitors are stacked vertically, it is practically impossible to drag the window between them, regardless of where you grab it. |
I am observing similar buggy behavior with both alacritty and Warp terminal. I have a video of it linked.
https://www.loom.com/share/aefc5dc1027a42fc8f462c23621ce9a5?sid=6b51b702-9c4b-4f2a-bc4a-2fca2a036462 Windows 11 Pro, 24H2 Update: moving the window from right to left display via shift+super+left also fails to fully move the window over. It ends up somewhere in the middle straddling the 2 displays instead. |
The code for dealing with the dpi changes looks way too complex to me. Microsoft recommends just this
https://learn.microsoft.com/en-us/windows/win32/hidpi/wm-dpichanged |
Description
When I move the window from monitor 1 (1440p, 150% scale) to monitor 2 (1080p, 125% scale), the window size keeps getting bigger.
Notes
Reproduce Screen Record
reproduce.mp4
Reproduce Project
reproduce.zip
Just copy from example :)
Windows version
Winit version
0.30.5
The text was updated successfully, but these errors were encountered: