Commit 1f99d80c authored by Alexandre Julliard's avatar Alexandre Julliard

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

The detection algorithm should be good enough for that case now.
parent 242a8a02
...@@ -101,13 +101,8 @@ static BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rec ...@@ -101,13 +101,8 @@ static BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rec
if (hwnd == GetActiveWindow()) return TRUE; if (hwnd == GetActiveWindow()) return TRUE;
/* 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 */
ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE );
if (ex_style & WS_EX_TOOLWINDOW) return FALSE;
/* windows with thick frame are managed */ /* windows with thick frame are managed */
if (style & WS_THICKFRAME) return TRUE; if (style & WS_THICKFRAME) return TRUE;
/* application windows are managed */
if (ex_style & WS_EX_APPWINDOW) return TRUE;
if (style & WS_POPUP) if (style & WS_POPUP)
{ {
/* popup with sysmenu == caption are managed */ /* popup with sysmenu == caption are managed */
...@@ -117,6 +112,9 @@ static BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rec ...@@ -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) window_rect->top <= 0 && window_rect->bottom >= screen_height)
return TRUE; return TRUE;
} }
/* application windows are managed */
ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE );
if (ex_style & WS_EX_APPWINDOW) return TRUE;
/* default: not managed */ /* default: not managed */
return FALSE; return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment