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

View file

@ -76,7 +76,7 @@ static inline BOOL is_window_managed( HWND hwnd )
if (ex_style & WS_EX_TRAYWINDOW) return TRUE;
/* child windows are not managed */
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 */
if ((style & WS_CAPTION) == WS_CAPTION) return TRUE;
/* tool windows are not managed */