same as for the message window, take pidgin as an example