mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[0.4.13][WIN32SS:NTUSER] Fix window state after restoring snapped window (#4119) CORE-16477
InternalPos.NormalRect is a key data for detecting whether a window was snapped. Keeping it after restore affecting next snap actions. The snapping-feature was added by 0.4.12-dev-373-g7e396787ed
Fix picked from 0.4.15-dev-3422-gdb810d8e44
This commit is contained in:
parent
d7b3d79c8a
commit
686421a030
1 changed files with 7 additions and 0 deletions
|
@ -813,9 +813,16 @@ IntDefWindowProc(
|
|||
if (wParam == VK_DOWN)
|
||||
{
|
||||
if (topWnd->style & WS_MAXIMIZE)
|
||||
{
|
||||
co_IntSendMessage(hwndTop, WM_SYSCOMMAND, SC_RESTORE, lParam);
|
||||
|
||||
/* "Normal size" must be erased after restoring, otherwise it will block next side snap actions */
|
||||
RECTL_vSetEmptyRect(&topWnd->InternalPos.NormalRect);
|
||||
}
|
||||
else
|
||||
{
|
||||
co_IntSendMessage(hwndTop, WM_SYSCOMMAND, SC_MINIMIZE, lParam);
|
||||
}
|
||||
}
|
||||
else if (wParam == VK_UP)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue