Small tweak to make window IDs good when running as an R5 Terminal replacement

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12706 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2005-05-18 08:22:39 +00:00
parent 898289a3f1
commit 2763f978ce
2 changed files with 17 additions and 5 deletions

View File

@ -78,7 +78,13 @@ TermApp::TermApp (void)
be_roster->GetAppList(TERM_SIGNATURE, &teams);
fWindowNumber = teams.CountItems();
if(fWindowNumber == 0)
{
be_roster->GetAppList(R5_TERM_SIGNATURE, &teams);
fWindowNumber = teams.CountItems();
}
int i = fWindowNumber / 16;
int j = fWindowNumber % 16;

View File

@ -34,14 +34,20 @@
#define MALLOC_DEBUG
#endif
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// Application signature (Must same in Muterminal.rsrc)//
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
#define TERM_SIGNATURE "application/x-vnd.Haiku-Terminal"
#define PREFFILE_MIMETYPE "text/x-terminal-pref"
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// Signature of R5's Terminal. Needed for proper drop-in window count support
//////////////////////////////////////////////////////////////////////////////
#define R5_TERM_SIGNATURE "application/x-vnd.Be-SHEL"
//////////////////////////////////////////////////////////////////////////////
// Message constants for menu items.
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// Menu Message.
//