do not send notification based on focused window title

Hello,
I have a propose that should be tested also on other platforms other than linux.
I do not want notifications when I have the chat window focused, so I introduced an option -W to specify a string that is compared with the current window title, if the current window title contains the specified string then no notification is sent.