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
+9 -7
View File
@@ -1,11 +1,12 @@
/* /*
* Copyright (c) 2001-2005, Haiku, Inc. * Copyright (c) 2001-2006, Haiku, Inc.
* Distributed under the terms of the MIT license. * Distributed under the terms of the MIT license.
* *
* Author: DarkWyrm <[email protected]> * Authors:
* Adi Oanca <adioanca@gmail.com> * DarkWyrm <[email protected].com>
* Stephan Aßmus <[email protected]> * Adi Oanca <[email protected]>
* Axel Dörfler, axeld@pinc-software.de * Stephan Aßmus <superstippi@gmx.de>
* Axel Dörfler, [email protected]
*/ */
@@ -1347,7 +1348,7 @@ WindowLayer::Frontmost(WindowLayer* first, int32 workspace)
if (fFeel == kDesktopWindowFeel) if (fFeel == kDesktopWindowFeel)
return first ? first : NextWindow(workspace); return first ? first : NextWindow(workspace);
if (fFeel == B_FLOATING_ALL_WINDOW_FEEL) if (fFeel == B_FLOATING_ALL_WINDOW_FEEL || fFeel == kMenuWindowFeel)
return NULL; return NULL;
if (first == NULL) if (first == NULL)
@@ -1359,7 +1360,8 @@ WindowLayer::Frontmost(WindowLayer* first, int32 workspace)
continue; continue;
// no one can be in front of a floating all window // 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; return window;
if (window->HasInSubset(this)) if (window->HasInSubset(this))