From ec29c270e4127e78bdc9713d63911b2bafa5b082 Mon Sep 17 00:00:00 2001 From: Skoader Date: Thu, 27 Sep 2012 22:32:41 +1000 Subject: [PATCH] Fix clicking on the title bar does not activate the window. --- .../Sources/Plasma/Apps/plClient/winmain.cpp | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp index 76b37153..a0c92a6f 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp @@ -534,28 +534,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) (LOWORD(wParam) == WA_CLICKACTIVE) ? "true" : "false"); 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 { gPendingActivate = true;