From a69bc02958176ce0e8869c79fc2f082f71fc668a Mon Sep 17 00:00:00 2001 From: Karl Lessard Date: Thu, 4 Nov 1999 02:11:55 +0000 Subject: [PATCH] Never send a WM_CLOSE message to a popup window. --- windows/x11drv/event.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/windows/x11drv/event.c b/windows/x11drv/event.c index cdc6f2f2ce4..e7b83d56460 100644 --- a/windows/x11drv/event.c +++ b/windows/x11drv/event.c @@ -737,14 +737,7 @@ 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); /* Abey : 6-Oct-99. Check again if the focus out window is the Foreground window, because in most cases the messages sent