How does Adium decide which window to place new chats in?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
dbconfession
Harmless
Posts: 20
Joined: Sun Jan 17, 2010 6:22 am

How does Adium decide which window to place new chats in?

Post by dbconfession »

On average, I have about five Adium windows open at a time, each with about 10 chat tabs open. Each of the five window sets is designated for a particular stage in my chatting process. I need to know how to control which window set becomes the default when I receive a new message from a contact who is not already in one of the open tabs.

I tried to figuring out how Adium decides which window to make the default by performing the following test:

*No chat windows open
1) Open chat with first person on my list.
2) Open chat with the second person on my list. This gets placed as a second tab in the same window.
3) Drag second tab out to be its own window.
4) Open Chat with the third person on my list.

I repeated this test 10 times, each time closing all windows so I was starting fresh. Four times out of ten, the third chat tab opened in the original window next to the first chat I opened. The other six times it opened in the new window next to the second chat tab.

Without digging deeper it seems that Adium is not following any logic when deciding where to open the third chat tab; that it's just doing it randomly. Does anyone know how this can be controlled. It seems unlikely that this really is a random decision; there has to be a way to control it.

Thanks in advance.
User avatar
Robby
Cocoaforge Admin
Posts: 2610
Joined: Mon May 01, 2006 3:00 am

Re: How does Adium decide which window to place new chats in?

Post by Robby »

I would expect the chat to be placed in the window that is in the foreground.
dbconfession
Harmless
Posts: 20
Joined: Sun Jan 17, 2010 6:22 am

Re: How does Adium decide which window to place new chats in?

Post by dbconfession »

Robby wrote:I would expect the chat to be placed in the window that is in the foreground.
So would I. But it doesn't. It seems to be random. So there's no definitive answer?
User avatar
Robby
Cocoaforge Admin
Posts: 2610
Joined: Mon May 01, 2006 3:00 am

Re: How does Adium decide which window to place new chats in?

Post by Robby »

There probably is but I'm no coder so me looking at the code wouldn't help. ;)
Post Reply