From c090b44d5aad095ef386c56fef740f46881f3f51 Mon Sep 17 00:00:00 2001 From: Skoader Date: Wed, 3 Oct 2012 20:28:51 -0400 Subject: [PATCH] Fix clicking on the title bar does not activate the window. --- Sources/Plasma/Apps/plClient/winmain.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Sources/Plasma/Apps/plClient/winmain.cpp b/Sources/Plasma/Apps/plClient/winmain.cpp index 4efe1809..cd10e5a9 100644 --- a/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/Sources/Plasma/Apps/plClient/winmain.cpp @@ -490,25 +490,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) if (gClient && !minimized && !gClient->GetDone()) { - if (LOWORD(wParam) == WA_CLICKACTIVE) - { - // See if they've clicked on the frame, in which case they just want to - // move, not activate, us. - POINT pt; - GetCursorPos(&pt); - ScreenToClient(hWnd, &pt); - - RECT rect; - GetClientRect(hWnd, &rect); - - if( (pt.x < rect.left) - ||(pt.x >= rect.right) - ||(pt.y < rect.top) - ||(pt.y >= rect.bottom) ) - { - active = false; - } - } gClient->WindowActivate(active); } else