equal
deleted
inserted
replaced
1347 void |
1347 void |
1348 showhide(Client *c, unsigned int ntiled) { |
1348 showhide(Client *c, unsigned int ntiled) { |
1349 if(!c) |
1349 if(!c) |
1350 return; |
1350 return; |
1351 if(ISVISIBLE(c)) { /* show clients top down */ |
1351 if(ISVISIBLE(c)) { /* show clients top down */ |
1352 if(ntiled > 1) /* avoid unnecessary border reverts */ |
1352 if(c->isfloating || ntiled > 1) /* avoid unnecessary border reverts */ |
1353 adjustborder(c, borderpx); |
1353 adjustborder(c, borderpx); |
1354 XMoveWindow(dpy, c->win, c->x, c->y); |
1354 XMoveWindow(dpy, c->win, c->x, c->y); |
1355 if(!lt[sellt]->arrange || c->isfloating) |
1355 if(!lt[sellt]->arrange || c->isfloating) |
1356 resize(c, c->x, c->y, c->w, c->h, True); |
1356 resize(c, c->x, c->y, c->w, c->h, True); |
1357 showhide(c->snext, ntiled); |
1357 showhide(c->snext, ntiled); |
1706 } |
1706 } |
1707 |
1707 |
1708 int |
1708 int |
1709 main(int argc, char *argv[]) { |
1709 main(int argc, char *argv[]) { |
1710 if(argc == 2 && !strcmp("-v", argv[1])) |
1710 if(argc == 2 && !strcmp("-v", argv[1])) |
1711 die("dwm-"VERSION", © 2006-2008 dwm engineers, see LICENSE for details\n"); |
1711 die("dwm-"VERSION", © 2006-2009 dwm engineers, see LICENSE for details\n"); |
1712 else if(argc != 1) |
1712 else if(argc != 1) |
1713 die("usage: dwm [-v]\n"); |
1713 die("usage: dwm [-v]\n"); |
1714 |
1714 |
1715 if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) |
1715 if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) |
1716 fprintf(stderr, "warning: no locale support\n"); |
1716 fprintf(stderr, "warning: no locale support\n"); |