mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 23:00:05 -04:00
Fix fullscreen window shrinking upon getting restored to a normal window (#1172)
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
- On Windows, fix handling of surrogate pairs when dispatching `ReceivedCharacter`.
|
- On Windows, fix handling of surrogate pairs when dispatching `ReceivedCharacter`.
|
||||||
- On macOS 10.15, fix freeze upon exiting exclusive fullscreen mode.
|
- On macOS 10.15, fix freeze upon exiting exclusive fullscreen mode.
|
||||||
- On iOS, fix null window on initial `HiDpiFactorChanged` event.
|
- On iOS, fix null window on initial `HiDpiFactorChanged` event.
|
||||||
|
- On Windows, fix fullscreen window shrinking upon getting restored to a normal window.
|
||||||
- On macOS, fix events not being emitted during modal loops, such as when windows are being resized
|
- On macOS, fix events not being emitted during modal loops, such as when windows are being resized
|
||||||
by the user.
|
by the user.
|
||||||
- On Windows, fix hovering the mouse over the active window creating an endless stream of CursorMoved events.
|
- On Windows, fix hovering the mouse over the active window creating an endless stream of CursorMoved events.
|
||||||
|
|||||||
@@ -599,6 +599,7 @@ impl Window {
|
|||||||
{
|
{
|
||||||
window_state_lock.dpi_factor = dpi_factor;
|
window_state_lock.dpi_factor = dpi_factor;
|
||||||
drop(window_state_lock);
|
drop(window_state_lock);
|
||||||
|
let client_rect = util::adjust_window_rect(window.0, client_rect).unwrap();
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
winuser::SetWindowPos(
|
winuser::SetWindowPos(
|
||||||
|
|||||||
Reference in New Issue
Block a user