window: improve message sending support