WS_POPUP windows (excluding the WS_POPUPWINDOW windows) should be
closed after loosing the focus.
This commit is contained in:
parent
3d696d93de
commit
fcc24ff431
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue