winex11: Don't force tool windows to unmanaged mode.

The detection algorithm should be good enough for that case now.
This commit is contained in:
Alexandre Julliard 2008-04-25 14:26:52 +02:00
parent 242a8a02f5
commit 1f99d80c06

View file

@ -101,13 +101,8 @@ static BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rec
if (hwnd == GetActiveWindow()) return TRUE;
/* windows with caption are managed */
if ((style & WS_CAPTION) == WS_CAPTION) return TRUE;
/* tool windows are not managed */
ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE );
if (ex_style & WS_EX_TOOLWINDOW) return FALSE;
/* windows with thick frame are managed */
if (style & WS_THICKFRAME) return TRUE;
/* application windows are managed */
if (ex_style & WS_EX_APPWINDOW) return TRUE;
if (style & WS_POPUP)
{
/* popup with sysmenu == caption are managed */
@ -117,6 +112,9 @@ static BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rec
window_rect->top <= 0 && window_rect->bottom >= screen_height)
return TRUE;
}
/* application windows are managed */
ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE );
if (ex_style & WS_EX_APPWINDOW) return TRUE;
/* default: not managed */
return FALSE;
}