1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

Remove CM timer event to fix taskbar behavior on Win 11

This commit is contained in:
Yihong Wu 2022-05-14 14:05:31 +08:00
parent ca996ed89a
commit 53d8b10de2

View File

@ -4251,9 +4251,6 @@ UINT CmMainWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *p
case WM_TIMER:
switch (wParam)
{
case 1:
CmSetForegroundProcessToCnService();
break;
case 2:
CmPollingTray(hWnd);
break;
@ -11269,7 +11266,6 @@ void CmMainWindowOnInit(HWND hWnd)
CmInitNotifyClientThread();
// Timer setting
SetTimer(hWnd, 1, 128, NULL);
SetTimer(hWnd, 6, 5000, NULL);
// Initialize the task tray