mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 03:09:13 +00:00
Fix clicking on the title bar does not activate the window.
This commit is contained in:
@ -490,25 +490,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
|
|
||||||
if (gClient && !minimized && !gClient->GetDone())
|
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);
|
gClient->WindowActivate(active);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user