This commit is contained in:
henrypp committed 2019-07-08 14:02:32 +06:00
1 parent e0bfbc2163
commit 2ba863a4ac
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -466,7 +466,7 @@ bool _app_notifyshow (HWND hwnd, PR_OBJECT ptr_log_object, bool is_forced, bool
else
KillTimer (hwnd, NOTIFY_TIMER_SAFETY_ID);
_app_notifysetpos (hwnd);
_app_notifysetpos (hwnd, false);
ShowWindow (hwnd, SW_SHOWNA);
@@ -545,9 +545,9 @@ void _app_notifyrefresh (HWND hwnd, bool is_safety)
_r_obj_dereference (ptr_log_object, &_app_dereferencelog);
}
void _app_notifysetpos (HWND hwnd)
void _app_notifysetpos (HWND hwnd, bool is_forced)
{
if (IsWindowVisible (hwnd))
if (!is_forced && IsWindowVisible (hwnd))
{
RECT windowRect = {0};
GetWindowRect (hwnd, &windowRect);
+1 -1
View File
@@ -20,7 +20,7 @@ void _app_notifyplaysound ();
void _app_notifyrefresh (HWND hwnd, bool is_safety);
void _app_notifysetpos (HWND hwnd);
void _app_notifysetpos (HWND hwnd, bool is_forced);
void _app_notifysettext (HDC hdc, HWND hwnd, UINT ctrl_id1, LPCWSTR text1, UINT ctrl_id2, LPCWSTR text2);
HFONT _app_notifyinitfont (PLOGFONT plf, LONG height, LONG weight, LPCWSTR name, BOOL is_underline);