only use window-width if the chat buffer is shown in a window at all