From 970be6477c1007d2a31ea4d3c4a2cd1a649cb56b Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Fri, 2 Apr 2004 20:10:11 +0000 Subject: [PATCH] WM_PARENTNOTIFY should not be sent to WS_POPUP windows. --- windows/win.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/windows/win.c b/windows/win.c index 044d1fa35ed..35761e0e210 100644 --- a/windows/win.c +++ b/windows/win.c @@ -197,10 +197,10 @@ static HWND *list_window_children( HWND hwnd, ATOM atom, DWORD tid ) */ static void send_parent_notify( HWND hwnd, UINT msg ) { - if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_CHILD)) return; - if (GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_NOPARENTNOTIFY) return; - SendMessageW( GetParent(hwnd), WM_PARENTNOTIFY, - MAKEWPARAM( msg, GetWindowLongW( hwnd, GWL_ID )), (LPARAM)hwnd ); + if ((GetWindowLongW( hwnd, GWL_STYLE ) & (WS_CHILD | WS_POPUP)) == WS_CHILD && + !(GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_NOPARENTNOTIFY)) + SendMessageW( GetParent(hwnd), WM_PARENTNOTIFY, + MAKEWPARAM( msg, GetWindowLongW( hwnd, GWL_ID )), (LPARAM)hwnd ); }