From ade091f23e09f4232545e358f2a7276ac0ee7c2f Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sat, 14 Jan 2006 22:51:10 +0000 Subject: [PATCH] Don't activate a window (in FFM mode) if it has the B_AVOID_FOCUS flag git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15945 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/WindowLayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/WindowLayer.cpp b/src/servers/app/WindowLayer.cpp index 817048a543..f6e35d472f 100644 --- a/src/servers/app/WindowLayer.cpp +++ b/src/servers/app/WindowLayer.cpp @@ -976,7 +976,7 @@ WindowLayer::MouseMoved(BMessage *msg, BPoint where, int32* _viewToken, // change focus in FFM mode DesktopSettings desktopSettings(fDesktop); - if (desktopSettings.MouseMode() != B_NORMAL_MOUSE && !IsFocus()) + if (desktopSettings.MouseMode() != B_NORMAL_MOUSE && !IsFocus() && !(Flags() & B_AVOID_FOCUS)) fDesktop->SetFocusWindow(this); }