Commit dbab3367 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winhelp: Don't close popup just after they are created.

parent 0865dc7c
...@@ -967,7 +967,7 @@ static BOOL WINHELP_CheckPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ...@@ -967,7 +967,7 @@ static BOOL WINHELP_CheckPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam
} }
break; break;
case WM_ACTIVATE: case WM_ACTIVATE:
if (wParam != WA_INACTIVE || (HWND)lParam == Globals.active_win->hMainWnd || if (LOWORD(wParam) != WA_INACTIVE || (HWND)lParam == Globals.active_win->hMainWnd ||
(HWND)lParam == Globals.active_popup->hMainWnd || (HWND)lParam == Globals.active_popup->hMainWnd ||
GetWindow((HWND)lParam, GW_OWNER) == Globals.active_win->hMainWnd) GetWindow((HWND)lParam, GW_OWNER) == Globals.active_win->hMainWnd)
break; break;
...@@ -975,7 +975,6 @@ static BOOL WINHELP_CheckPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ...@@ -975,7 +975,6 @@ static BOOL WINHELP_CheckPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam
if (WINHELP_HandleTextMouse(Globals.active_popup, msg, lParam)) if (WINHELP_HandleTextMouse(Globals.active_popup, msg, lParam))
return FALSE; return FALSE;
/* fall through */ /* fall through */
case WM_LBUTTONUP:
case WM_MBUTTONDOWN: case WM_MBUTTONDOWN:
case WM_RBUTTONDOWN: case WM_RBUTTONDOWN:
case WM_NCLBUTTONDOWN: case WM_NCLBUTTONDOWN:
......
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