summaryrefslogtreecommitdiff
path: root/plugins/FloatingContacts
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FloatingContacts')
-rw-r--r--plugins/FloatingContacts/src/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/FloatingContacts/src/main.cpp b/plugins/FloatingContacts/src/main.cpp
index d9a74482eb..37b7da459a 100644
--- a/plugins/FloatingContacts/src/main.cpp
+++ b/plugins/FloatingContacts/src/main.cpp
@@ -376,6 +376,10 @@ static LRESULT __stdcall CommWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
}
break;
+ case WM_CLOSE:
+ DestroyWindow(hwnd);
+ break;
+
case WM_NCPAINT:
if (pThumb){
HDC hdc = GetWindowDC( hwnd );
@@ -948,7 +952,7 @@ static int OnModulesLoded(WPARAM wParam, LPARAM lParam)
static int OnPreshutdown(WPARAM, LPARAM)
{
- WindowList_Broadcast(hwndList, WM_DESTROY, 0, 0);
+ WindowList_Broadcast(hwndList, WM_CLOSE, 0, 0);
return 0;
}