always make sure that _SURF_URI is set before spawning

This commit is contained in:
gutmet 2021-03-14 13:23:45 +01:00
parent abb5ef182b
commit ee9cdd909f

1
surf.c
View File

@ -1053,6 +1053,7 @@ newwindow(Client *c, const Arg *a, int noembed)
void
spawn(Client *c, const Arg *a)
{
setatom(c, AtomUri, geturi(c));
if (fork() == 0) {
if (dpy)
close(ConnectionNumber(dpy));