From 53d8b10de234ff36c14a8dd43653d2bd6a9d3015 Mon Sep 17 00:00:00 2001 From: Yihong Wu <54519668+domosekai@users.noreply.github.com> Date: Sat, 14 May 2022 14:05:31 +0800 Subject: [PATCH] Remove CM timer event to fix taskbar behavior on Win 11 --- src/Cedar/CM.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Cedar/CM.c b/src/Cedar/CM.c index 5f74a107..6ea740dd 100644 --- a/src/Cedar/CM.c +++ b/src/Cedar/CM.c @@ -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