winex11.drv: Don't give focus to a minimized window upon take focus.

This commit is contained in:
Alexandre Julliard 2009-04-23 12:41:57 +02:00
parent bceedda955
commit eafc9caa80
1 changed files with 1 additions and 0 deletions

View File

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