* fixed some bugs, and improved some things.
* rendered BWindow::RemoveFromSubset operationable That's it! I seems regular windows NORMAL/FLOATING/MODAL windows are shown when and how they should be. There are other kind of windows, to be precise B_SYSTEM_LAST and B_SYSTEM_FIRST, with witch I played very little. I'll be back on them 2 weks from now when I hope I'll start codeing again. Till then... happy coding! :-) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6114 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -754,6 +754,12 @@ printf("WinBorder(%s)::AddToSubsetOf(%s) - General lock released\n", GetName(),
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void WinBorder::RemoveFromSubsetOf(WinBorder* main){
|
||||
RootLayer *rl = main->GetRootLayer();
|
||||
|
||||
desktop->fGeneralLock.Lock();
|
||||
printf("WinBorder(%s)::RemoveFromSubsetOf(%s) - General lock acquired\n", GetName(), main->GetName());
|
||||
rl->fMainLock.Lock();
|
||||
printf("WinBorder(%s)::RemoveFromSubsetOf(%s) - Main lock acquired\n", GetName(), main->GetName());
|
||||
// remove from main window's subset list.
|
||||
if(main->Window()->fWinFMWList.RemoveItem(this)){
|
||||
int32 count = main->GetRootLayer()->WorkspaceCount();
|
||||
@@ -766,8 +772,12 @@ void WinBorder::RemoveFromSubsetOf(WinBorder* main){
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fMainWinBorder = NULL;
|
||||
|
||||
rl->fMainLock.Unlock();
|
||||
printf("WinBorder(%s)::RemoveFromSubsetOf(%s) - Main lock released\n", GetName(), main->GetName());
|
||||
desktop->fGeneralLock.Unlock();
|
||||
printf("WinBorder(%s)::RemoveFromSubsetOf(%s) - General lock released\n", GetName(), main->GetName());
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void WinBorder::PrintToStream(){
|
||||
|
||||
Reference in New Issue
Block a user