Use "wmctrl -l -x" which simplifies the work

We don't need to use the real window title to match with our program
name, there is a column just right for us when using -x

I also change the way that it works for Pidgin by showing always the
conversation window instead of the "List Of Friends" if there is an
active conversation.