fixes a hanging swaygrab
fixes a hanging swaygrab

https://github.com/SirCmpwn/sway/issues/1350 is fixed with this.
The commit that change swaygrab to use fork instead of Popen tried to
write to the read end of the pipe in the child branch and exec in the
parent branch.
This commit fixes both of those and closes the write fd after writing,
so convert actually exits.

4e554c4c/sway,taiyu-len/sway,ascent12/sway,taiyu-len/sway,SirCmpwn/sway,taiyu-len/sway,johalun/sway,1ace/sway,1ace/sway,1ace/sway,4e554c4c/sway,ascent12/sway,ascent12/sway,ptMuta/sway