Fixed a bad behaviour showing and locating the chat windows.

This commit is contained in:
barrett 2012-03-19 20:43:18 +00:00
parent 267bc512a6
commit b96ea4c6bf
2 changed files with 5 additions and 2 deletions

View File

@ -71,6 +71,9 @@ ContactLinker::ShowWindow()
if (fChatWindow->IsHidden())
fChatWindow->Show();
if (fChatWindow->IsMinimized())
fChatWindow->Minimize(false);
if (CayaPreferences::Item()->FocusOnMessageReceived == true
|| CayaPreferences::Item()->FocusUserIsTyping == true)
fChatWindow->Activate(true);

View File

@ -13,7 +13,7 @@ WindowsManager* WindowsManager::fInstance = NULL;
WindowsManager::WindowsManager()
{
fCurrentPoint.Set(50.0f, 50.0f);
fCurrentPoint.Set(20.0f, 20.0f);
}
@ -32,5 +32,5 @@ WindowsManager::RelocateWindow(BWindow* window)
{
window->SetWorkspaces(B_CURRENT_WORKSPACE);
window->MoveTo(fCurrentPoint);
fCurrentPoint += BPoint(50.0f, 50.0f);
fCurrentPoint += BPoint(20.0f, 20.0f);
}