mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
This fixes an issue when setting the position of the window on a new monitor and immediately maximizing it ```rs window.set_outer_position::<PhysicalPosition<u32>>((2000, 200).into()); window.set_maximized(true); ``` Due to the nature of the event loop, the requested position and maximization state will apply correctly but due to the fact that the new position is a different monitor, a `ScaleFactorChanged` is emitted afterwards to the evenloop and a new size is set while the window is still maximized which results in a window that has `WS_MAXIMZE` window style but doesn't cover the whole monitor.