client.c
changeset 405 dd44dc937e8b
parent 403 6413ea66b1c2
child 408 a031bbee1816
equal deleted inserted replaced
404:4439d1168b6c 405:dd44dc937e8b
   252 		clients->prev = c;
   252 		clients->prev = c;
   253 	c->next = clients;
   253 	c->next = clients;
   254 	clients = c;
   254 	clients = c;
   255 
   255 
   256 	settitle(c);
   256 	settitle(c);
   257 	if(isvisible(c))
   257 	if(isvisible(c)) {
       
   258 		focus(NULL);
   258 		sel = c;
   259 		sel = c;
       
   260 	}
   259 	arrange(NULL);
   261 	arrange(NULL);
   260 	XMapWindow(dpy, c->win);
   262 	XMapWindow(dpy, c->win);
   261 	XMapWindow(dpy, c->twin);
   263 	XMapWindow(dpy, c->twin);
   262 	if(isvisible(c))
   264 	if(isvisible(c))
   263 		focus(c);
   265 		focus(c);