client.c
changeset 435 42388f634de0
parent 431 a230e4432bb7
child 436 b3659c3c5dab
equal deleted inserted replaced
434:265dc4ae3354 435:42388f634de0
    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 		}
   102 		grabbuttons(c, True);
   110 		grabbuttons(c, True);
   103 		drawtitle(c);
   111 		drawtitle(c);
   104 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
   112 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
   105 	}
   113 	}
   106 	else
   114 	else