Version: 0.40.0 (using KDE Devel) Installed from: Compiled sources The system tray flashes on all new messages, even if there is already an active chat window. This should be controlled by the "Enable events for active chat windows" setting. I've looked at the code in kopetesystemtray.cpp and I don't see how to get the state "is there an active chat window" from the KopeteMessageEvent. In 3.5 this worked but was apparently due to a check on the number of balloon events vs tray events, which seems like it is happening at the wrong level, and anyway we don't have the balloon in 4.0.
> In 3.5 this worked but was apparently due to a check on the number of > balloon events vs tray events, IIRC this is not 100% correct. In r463970 I added the check comparing these events while implementing the balloon timeout feature. Before, there was no comparison, just a simple startBlink call. However, AFAIK the "Enable events for active chat windows" setting does not affect message queueing/stacking (that is, neither the balloon nor the tray flash) even in 3.5! > which seems like it is happening at the > wrong level, and anyway we don't have the balloon in 4.0. In 3.5, the decision whether to queue/stack a message or not is somewhat hardcoded in KopeteViewManager::messageAppended. Actually, there are several checks: is a chat window already there? if so, is it active? if so, is the chat view in the active chat window active?
*** This bug has been marked as a duplicate of 153964 ***