Non active window should be activated when it gets any
client/non-client double/single left/medium/right mouse click(s).
This commit is contained in:
parent
2b4102e459
commit
5a3505c985
|
@ -283,7 +283,7 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Caption clicks are handled by the NC_HandleNCLButtonDown() */
|
/* Caption clicks are handled by the NC_HandleNCLButtonDown() */
|
||||||
return (LOWORD(lParam) == HTCAPTION) ? MA_NOACTIVATE : MA_ACTIVATE;
|
return (LOWORD(lParam) >= HTCLIENT) ? MA_ACTIVATE : MA_NOACTIVATE;
|
||||||
|
|
||||||
case WM_ACTIVATE:
|
case WM_ACTIVATE:
|
||||||
/* The default action in Windows is to set the keyboard focus to
|
/* The default action in Windows is to set the keyboard focus to
|
||||||
|
|
|
@ -2589,9 +2589,6 @@ LONG NC_HandleNCLButtonDown( WND* pWnd, WPARAM16 wParam, LPARAM lParam )
|
||||||
{
|
{
|
||||||
HWND hwnd = pWnd->hwndSelf;
|
HWND hwnd = pWnd->hwndSelf;
|
||||||
|
|
||||||
if(GetForegroundWindow() != hwnd)
|
|
||||||
SetWindowPos( hwnd, 0, 0, 0,0,0,SWP_NOSIZE | SWP_NOMOVE | SWP_DRAWFRAME);
|
|
||||||
|
|
||||||
switch(wParam) /* Hit test */
|
switch(wParam) /* Hit test */
|
||||||
{
|
{
|
||||||
case HTCAPTION:
|
case HTCAPTION:
|
||||||
|
|
Loading…
Reference in New Issue