Make it set selected_window as well. (update_tool_bar): Use it.
Attach a file by drag & drop or click to upload