Fixed a bad behaviour showing and locating the chat windows.
This commit is contained in:
parent
267bc512a6
commit
b96ea4c6bf
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Ŝarĝante…
Reference in New Issue