Commit fcc24ff4 authored by Noomen Hamza's avatar Noomen Hamza Committed by Alexandre Julliard

WS_POPUP windows (excluding the WS_POPUPWINDOW windows) should be

closed after loosing the focus.
parent 3d696d93
......@@ -737,7 +737,14 @@ static void EVENT_FocusOut( HWND hWnd, XFocusChangeEvent *event )
if (event->detail != NotifyPointer)
if (hWnd == GetForegroundWindow())
{
WND *pWnd = WIN_FindWndPtr(hWnd);
if( ((pWnd->dwStyle & WS_POPUP) == WS_POPUP) &&
((pWnd->dwStyle & WS_POPUPWINDOW) != WS_POPUPWINDOW) )
SendMessageA(hWnd, WM_CLOSE, 0, 0 );
else
SendMessageA( hWnd, WM_CANCELMODE, 0, 0 );
WIN_ReleaseWndPtr(pWnd);
SetForegroundWindow( 0 );
}
}
......
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