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:
Stefano Ceccherini
2008-01-10 16:04:57 +00:00
parent c99755c092
commit 0625889c61
2 changed files with 12 additions and 5 deletions
+3 -1
View File
@@ -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;
}