client.c
changeset 436 b3659c3c5dab
parent 435 42388f634de0
child 440 9d73c8298b2e
equal deleted inserted replaced
435:42388f634de0 436:b3659c3c5dab
    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) && (c != clients)) {
       
   103 			detach(c);
       
   104 			if(clients) {
       
   105 				clients->prev = c;
       
   106 				c->next = clients;
       
   107 			}
       
   108 			clients = c;
       
   109 		}
       
   110 		grabbuttons(c, True);
   102 		grabbuttons(c, True);
   111 		drawtitle(c);
   103 		drawtitle(c);
   112 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
   104 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
   113 	}
   105 	}
   114 	else
   106 	else