fix blank window (fix #731)

This commit is contained in:
henrypp committed 2020-08-01 14:12:38 +06:00
1 parent 0e66036b44
commit ec6e4567ab
1 file changed
+2 -2
+2 -2
View File
@@ -355,7 +355,7 @@ VOID _app_notifysetpos (HWND hwnd, BOOLEAN is_forced)
if (GetWindowRect (hwnd, &windowRect))
{
_r_wnd_adjustwindowrect (hwnd, &windowRect);
SetWindowPos (hwnd, NULL, windowRect.left, windowRect.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
SetWindowPos (hwnd, NULL, windowRect.left, windowRect.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED | SWP_NOOWNERZORDER);
return;
}
@@ -401,7 +401,7 @@ VOID _app_notifysetpos (HWND hwnd, BOOLEAN is_forced)
windowRect.top = (desktopRect.bottom - _r_calc_rectheight (LONG, &windowRect)) - border_x;
}
SetWindowPos (hwnd, NULL, windowRect.left, windowRect.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
SetWindowPos (hwnd, NULL, windowRect.left, windowRect.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED | SWP_NOOWNERZORDER);
return;
}
}