[Bug 310946] No notification sound when a new message comes in in an active chat window

Martin Klapetek martin.klapetek at gmail.com
Fri Nov 30 22:24:55 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=310946

Martin Klapetek <martin.klapetek at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.klapetek at gmail.com

--- Comment #1 from Martin Klapetek <martin.klapetek at gmail.com> ---
Thanks for the report!

That behavior is actually correct as it notifies only when the window does not
have focus, otherwise you'd get the notification sound with absolutely every
single message and I can imagine that being annoying after a while. Even
facebook plays no sound when the chat is focused (though they do play a sound
when the pause in the chat is longer than N).

In fact, you can probably try it on yourself with very simple patch (if you are
using self-compiled install, otherwise it won't work):

Open ktp-text-ui/lib/chat-widget.cpp and change line 676, in the codeblock
looking like this:

    if(isOnTop()) {
        kDebug() << "Widget is on top, not doing anything";
        return;
    }

and change it into

    if(isOnTop()) {
        kDebug() << "Widget is on top, not doing anything";
        //return;
    }


Recompile and install. And then try using it for a while. I'm pretty sure it
will get annoying :)

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list