Module: wine Branch: master Commit: 9ea4e18be6332c63a9874330de500f19624ec62c URL: http://source.winehq.org/git/wine.git/?a=commit;h=9ea4e18be6332c63a9874330de...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Oct 23 12:25:22 2009 +0200
winex11: Do not give focus to a WS_EX_NOACTIVATE window.
---
dlls/winex11.drv/event.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index 956e4f1..345b675 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -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); }