equal
deleted
inserted
replaced
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 } |