Implemented kMenuWindowFeel, not that much tested, though.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16149 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-01-30 11:50:02 +00:00
parent 04fcc147ca
commit 304636cc5e
+6 -4
View File
@@ -1,8 +1,9 @@
/*
* Copyright (c) 2001-2005, Haiku, Inc.
* Copyright (c) 2001-2006, Haiku, Inc.
* Distributed under the terms of the MIT license.
*
* Author: DarkWyrm <[email protected]>
* Authors:
* DarkWyrm <[email protected]>
* Adi Oanca <[email protected]>
* Stephan Aßmus <[email protected]>
* Axel Dörfler, [email protected]
@@ -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))