Write queue after connect windows

style