diff --git a/src/servers/app/WindowLayer.cpp b/src/servers/app/WindowLayer.cpp index 6f69bfdbf2..2c9750d308 100644 --- a/src/servers/app/WindowLayer.cpp +++ b/src/servers/app/WindowLayer.cpp @@ -1,11 +1,12 @@ /* - * Copyright (c) 2001-2005, Haiku, Inc. + * Copyright (c) 2001-2006, Haiku, Inc. * Distributed under the terms of the MIT license. * - * Author: DarkWyrm - * Adi Oanca - * Stephan Aßmus - * Axel Dörfler, axeld@pinc-software.de + * Authors: + * DarkWyrm + * Adi Oanca + * Stephan Aßmus + * Axel Dörfler, axeld@pinc-software.de */ @@ -1347,7 +1348,7 @@ WindowLayer::Frontmost(WindowLayer* first, int32 workspace) if (fFeel == kDesktopWindowFeel) return first ? first : NextWindow(workspace); - if (fFeel == B_FLOATING_ALL_WINDOW_FEEL) + if (fFeel == B_FLOATING_ALL_WINDOW_FEEL || fFeel == kMenuWindowFeel) return NULL; if (first == NULL) @@ -1359,7 +1360,8 @@ WindowLayer::Frontmost(WindowLayer* first, int32 workspace) continue; // no one can be in front of a floating all window - if (window->Feel() == B_FLOATING_ALL_WINDOW_FEEL) + if (window->Feel() == B_FLOATING_ALL_WINDOW_FEEL + || window->Feel() == kMenuWindowFeel) return window; if (window->HasInSubset(this))