Commit 5a3505c9 authored by Noomen Hamza's avatar Noomen Hamza Committed by Alexandre Julliard

Non active window should be activated when it gets any

client/non-client double/single left/medium/right mouse click(s).
parent 2b4102e4
......@@ -283,7 +283,7 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
}
/* 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:
/* 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;
if(GetForegroundWindow() != hwnd)
SetWindowPos( hwnd, 0, 0, 0,0,0,SWP_NOSIZE | SWP_NOMOVE | SWP_DRAWFRAME);
switch(wParam) /* Hit test */
{
case HTCAPTION:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment