client.c
changeset 442 056a5072c70a
parent 441 785bad5f21dd
child 446 a2e587651c79
equal deleted inserted replaced
441:785bad5f21dd 442:056a5072c70a
    97 			grabbuttons(old, False);
    97 			grabbuttons(old, False);
    98 			drawtitle(old);
    98 			drawtitle(old);
    99 		}
    99 		}
   100 	}
   100 	}
   101 	if(c) {
   101 	if(c) {
   102 		if(c->isfloat || arrange == dofloat) {
       
   103 			detach(c);
       
   104 			if(clients)
       
   105 				clients->prev = c;
       
   106 			c->next = clients;
       
   107 			clients = c;
       
   108 		}
       
   109 		grabbuttons(c, True);
   102 		grabbuttons(c, True);
   110 		drawtitle(c);
   103 		drawtitle(c);
   111 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
   104 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
   112 	}
   105 	}
   113 	else
   106 	else