From ec6e4567ab1dafe66fd8b326a3efbc97f9dcd393 Mon Sep 17 00:00:00 2001 From: henrypp Date: Sat, 1 Aug 2020 14:12:38 +0600 Subject: [PATCH] fix blank window (fix #731) --- src/notifications.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notifications.cpp b/src/notifications.cpp index dd6e63c8..2fb38de7 100644 --- a/src/notifications.cpp +++ b/src/notifications.cpp @@ -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; } }