From db3a40a7e83d0dadf6795f2b1bcdd65f694bd50e Mon Sep 17 00:00:00 2001 From: Kensuke Matsuzaki Date: Fri, 12 Mar 2004 07:31:13 +0000 Subject: [PATCH] When explorer is restarted, readd tasktray icon. --- hw/xwin/winwndproc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/xwin/winwndproc.c b/hw/xwin/winwndproc.c index 87d7f6bc9..76edc024d 100644 --- a/hw/xwin/winwndproc.c +++ b/hw/xwin/winwndproc.c @@ -68,6 +68,7 @@ winWindowProc (HWND hwnd, UINT message, static HINSTANCE s_hInstance; static Bool s_fTracking = FALSE; static unsigned long s_ulServerGeneration = 0; + static UINT s_uTaskbarRestart = 0; int iScanCode; int i; @@ -123,6 +124,7 @@ winWindowProc (HWND hwnd, UINT message, s_pScreenInfo = s_pScreenPriv->pScreenInfo; s_pScreen = s_pScreenInfo->pScreen; s_hwndLastPrivates = hwnd; + s_uTaskbarRestart = RegisterWindowMessage(TEXT("TaskbarCreated")); SetProp (hwnd, WIN_SCR_PROP, s_pScreenPriv); /* Setup tray icon */ @@ -1128,6 +1130,13 @@ winWindowProc (HWND hwnd, UINT message, /* Display Exit dialog */ winDisplayExitDialog (s_pScreenPriv); return 0; + + default: + if(message == s_uTaskbarRestart) + { + winInitNotifyIcon (s_pScreenPriv); + } + break; } return DefWindowProc (hwnd, message, wParam, lParam);