client.c
changeset 908 2f27c51332ed
parent 906 e04a79845936
child 909 8a8b7a413e66
equal deleted inserted replaced
907:a78ef26f7ae9 908:2f27c51332ed
   129 	c->next = c->prev = NULL;
   129 	c->next = c->prev = NULL;
   130 }
   130 }
   131 
   131 
   132 void
   132 void
   133 focus(Client *c) {
   133 focus(Client *c) {
   134 	if( !c && selscreen || c && !isvisible(c))
   134 	if((!c && selscreen)|| (c && !isvisible(c)))
   135 		for(c = stack; c && !isvisible(c); c = c->snext);
   135 		for(c = stack; c && !isvisible(c); c = c->snext);
   136 	if(sel && sel != c) {
   136 	if(sel && sel != c) {
   137 		grabbuttons(sel, False);
   137 		grabbuttons(sel, False);
   138 		XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]);
   138 		XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]);
   139 	}
   139 	}