Module: wine Branch: master Commit: eafc9caa8039aa837eb670d706e5f6a126ade6bb URL: http://source.winehq.org/git/wine.git/?a=commit;h=eafc9caa8039aa837eb670d706...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Apr 23 12:41:57 2009 +0200
winex11.drv: Don't give focus to a minimized window upon take focus.
---
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 a5d2e85..c746546 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -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); }