From e93d736daca5f89a1fb2718eeef634c6d76bb986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 17 Apr 2007 14:40:29 +0000 Subject: [PATCH] We should not pass the mouse down event to the window in case it has B_AVOID_FOCUS set; found by Stefano as described in bug #670 comment 5. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20738 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/WindowLayer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/servers/app/WindowLayer.cpp b/src/servers/app/WindowLayer.cpp index 816d9e5d1d..b5a997ded9 100644 --- a/src/servers/app/WindowLayer.cpp +++ b/src/servers/app/WindowLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001-2006, Haiku, Inc. + * Copyright (c) 2001-2007, Haiku, Inc. * Distributed under the terms of the MIT license. * * Authors: @@ -853,7 +853,8 @@ WindowLayer::MouseDown(BMessage* message, BPoint where, int32* _viewToken) fDesktop->ActivateWindow(this); // eat the click if we don't accept first click - if ((Flags() & (B_WILL_ACCEPT_FIRST_CLICK | B_AVOID_FOCUS)) == 0) + if ((Flags() & B_WILL_ACCEPT_FIRST_CLICK) == 0 + || (Flags() & B_AVOID_FOCUS) != 0) return; }