Skip to content

Commit

Permalink
Restore Thunderbird window to foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
sagamusix committed Sep 20, 2019
1 parent 2072655 commit 00d9916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dll/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ static LRESULT CALLBACK TrayIconProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
ShowWindow(mainHwnd, SW_SHOW);
Shell_NotifyIcon(NIM_DELETE, &nid);
if (uMsg == WM_COMMAND && wParam == ID_CLOSE)
{
SendMessage(mainHwnd, WM_SYSCOMMAND, SC_CLOSE, 0);
}
else
SetForegroundWindow(mainHwnd);
}
else if (uMsg == WM_USER + 1337 && LOWORD(lParam) == WM_CONTEXTMENU)
{
Expand Down

0 comments on commit 00d9916

Please sign in to comment.