winex11: Do not give focus to a WS_EX_NOACTIVATE window.

This commit is contained in:
Alexandre Julliard 2009-10-23 12:25:22 +02:00
parent 67cbdfb575
commit 9ea4e18be6
1 changed files with 1 additions and 0 deletions

View File

@ -463,6 +463,7 @@ static inline BOOL can_activate_window( HWND hwnd )
if (!(style & WS_VISIBLE)) return FALSE;
if ((style & (WS_POPUP|WS_CHILD)) == WS_CHILD) return FALSE;
if (style & WS_MINIMIZE) return FALSE;
if (GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_NOACTIVATE) return FALSE;
if (hwnd == GetDesktopWindow()) return FALSE;
return !(style & WS_DISABLED);
}