Commit 9ea4e18b authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Do not give focus to a WS_EX_NOACTIVATE window.

parent 67cbdfb5
......@@ -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);
}
......
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