mirror of
https://github.com/henrypp/simplewall.git
synced 2026-10-22 02:52:54 -05:00
fix blank window (fix #731)
This commit is contained in:
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user