IsModal() now includes also the kMenuWindowLook. Fixes bug #1269. Please
review. Added a compile time option to switch off the use of the cached menu windows. Looks like there is a problem with the focus system, if I keep the cached menu window around, it "steals" keyboard events from the main app window after the menu has been opened and closed once. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23343 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include <ServerProtocol.h>
|
||||
#include <TokenSpace.h>
|
||||
#include <tracker_private.h>
|
||||
#include <WindowPrivate.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
@@ -1912,7 +1913,8 @@ BWindow::IsModal() const
|
||||
{
|
||||
return fFeel == B_MODAL_SUBSET_WINDOW_FEEL
|
||||
|| fFeel == B_MODAL_APP_WINDOW_FEEL
|
||||
|| fFeel == B_MODAL_ALL_WINDOW_FEEL;
|
||||
|| fFeel == B_MODAL_ALL_WINDOW_FEEL
|
||||
|| fFeel == kMenuWindowFeel;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user