equal
deleted
inserted
replaced
201 XSetWindowBorder(dpy, w, dc.norm[ColBorder]); |
201 XSetWindowBorder(dpy, w, dc.norm[ColBorder]); |
202 configure(c); /* propagates border_width, if size doesn't change */ |
202 configure(c); /* propagates border_width, if size doesn't change */ |
203 updatetitle(c); |
203 updatetitle(c); |
204 for(t = clients; t && t->win != trans; t = t->next); |
204 for(t = clients; t && t->win != trans; t = t->next); |
205 settags(c, t); |
205 settags(c, t); |
206 if(!c->isversatile) |
206 if(!c->isuntiled) |
207 c->isversatile = (t != NULL) || c->isfixed; |
207 c->isuntiled = (t != NULL) || c->isfixed; |
208 attach(c); |
208 attach(c); |
209 attachstack(c); |
209 attachstack(c); |
210 c->isbanned = True; |
210 c->isbanned = True; |
211 XMoveWindow(dpy, w, c->x + 2 * sw, c->y); |
211 XMoveWindow(dpy, w, c->x + 2 * sw, c->y); |
212 XMapWindow(dpy, w); |
212 XMapWindow(dpy, w); |
283 XSync(dpy, False); |
283 XSync(dpy, False); |
284 } |
284 } |
285 } |
285 } |
286 |
286 |
287 void |
287 void |
288 toggleversatile(const char *arg) { |
288 toggletiled(const char *arg) { |
289 if(!sel || lt->arrange == versatile) |
289 if(!sel || lt->arrange == untile) |
290 return; |
290 return; |
291 sel->isversatile = !sel->isversatile; |
291 sel->isuntiled = !sel->isuntiled; |
292 lt->arrange(); |
292 lt->arrange(); |
293 } |
293 } |
294 |
294 |
295 void |
295 void |
296 updatesizehints(Client *c) { |
296 updatesizehints(Client *c) { |