Skip to content

Commit

Permalink
fix: persist window animations setting across restarts (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
veryard authored Nov 5, 2024
1 parent e6b26df commit cbbd809
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/wm/src/common/platform/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ use windows::{
RegisterClassW, SetCursorPos, SystemParametersInfoW,
TranslateMessage, WindowFromPoint, ANIMATIONINFO, CS_HREDRAW,
CS_VREDRAW, CW_USEDEFAULT, GA_ROOT, MB_ICONERROR, MB_OK,
MB_SYSTEMMODAL, MSG, PM_REMOVE, SPI_GETANIMATION,
SPI_SETANIMATION, SW_HIDE, SW_NORMAL,
SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS, WM_QUIT, WNDCLASSW, WNDPROC,
WS_OVERLAPPEDWINDOW,
MB_SYSTEMMODAL, MSG, PM_REMOVE, SPIF_SENDCHANGE,
SPIF_UPDATEINIFILE, SPI_GETANIMATION, SPI_SETANIMATION, SW_HIDE,
SW_NORMAL, SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS, WM_QUIT,
WNDCLASSW, WNDPROC, WS_OVERLAPPEDWINDOW,
},
},
},
Expand Down Expand Up @@ -280,7 +280,7 @@ impl Platform {
unsafe {
SystemParametersInfoW(
SPI_GETANIMATION,
0,
animation_info.cbSize,
Some(&mut animation_info as *mut _ as _),
SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS(0),
)
Expand All @@ -303,9 +303,9 @@ impl Platform {
unsafe {
SystemParametersInfoW(
SPI_SETANIMATION,
0,
animation_info.cbSize,
Some(&mut animation_info as *mut _ as _),
SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS(0),
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE,
)
}?;

Expand Down

0 comments on commit cbbd809

Please sign in to comment.