Write queue after connect windows

To the windows struct or to the global struct?