From eafc9caa8039aa837eb670d706e5f6a126ade6bb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 23 Apr 2009 12:41:57 +0200 Subject: [PATCH] winex11.drv: Don't give focus to a minimized window upon take focus. --- dlls/winex11.drv/event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index a5d2e851ac..c746546f71 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); } -- 2.32.0.93.g670b81a890