winex11: Don't try to activate the desktop window on take focus.

oldstable
Alexandre Julliard 2007-08-16 23:43:58 +02:00
parent bde89576b3
commit eaad370987
1 changed files with 1 additions and 0 deletions

View File

@ -349,6 +349,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 (hwnd == GetDesktopWindow()) return FALSE;
return !(style & WS_DISABLED);
}