x11drv: Fix the special case where windows have WS_CHILD and WS_POPUP.

This commit is contained in:
Peter Dons Tychsen 2007-07-25 04:09:50 +02:00 committed by Alexandre Julliard
parent 6763742090
commit d0b21abe81
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ static inline BOOL is_window_managed( HWND hwnd )
if (ex_style & WS_EX_TRAYWINDOW) return TRUE; if (ex_style & WS_EX_TRAYWINDOW) return TRUE;
/* child windows are not managed */ /* child windows are not managed */
style = GetWindowLongW( hwnd, GWL_STYLE ); style = GetWindowLongW( hwnd, GWL_STYLE );
if (style & WS_CHILD) return FALSE; if ((style & (WS_CHILD|WS_POPUP)) == WS_CHILD) return FALSE;
/* windows with caption are managed */ /* windows with caption are managed */
if ((style & WS_CAPTION) == WS_CAPTION) return TRUE; if ((style & WS_CAPTION) == WS_CAPTION) return TRUE;
/* tool windows are not managed */ /* tool windows are not managed */