applied Marc Andre Tanners showhide patch, the removal of ntiled
3632d713
2 file(s) · +7 −11
| 11 | 11 | X11LIB = /usr/X11R6/lib |
|
| 12 | 12 | ||
| 13 | 13 | # Xinerama, un-comment if you want it |
|
| 14 | - | #XINERAMALIBS = -L${X11LIB} -lXinerama |
|
| 15 | - | #XINERAMAFLAGS = -DXINERAMA |
|
| 14 | + | XINERAMALIBS = -L${X11LIB} -lXinerama |
|
| 15 | + | XINERAMAFLAGS = -DXINERAMA |
|
| 16 | 16 | ||
| 17 | 17 | # includes and libs |
|
| 18 | 18 | INCS = -I. -I/usr/include -I${X11INC} |
| 179 | 179 | static void setlayout(const Arg *arg); |
|
| 180 | 180 | static void setmfact(const Arg *arg); |
|
| 181 | 181 | static void setup(void); |
|
| 182 | - | static void showhide(Client *c, unsigned int ntiled); |
|
| 182 | + | static void showhide(Client *c); |
|
| 183 | 183 | static void sigchld(int signal); |
|
| 184 | 184 | static void spawn(const Arg *arg); |
|
| 185 | 185 | static void tag(const Arg *arg); |
|
| 338 | 338 | ||
| 339 | 339 | void |
|
| 340 | 340 | arrange(void) { |
|
| 341 | - | unsigned int nt; |
|
| 342 | - | Client *c; |
|
| 343 | - | ||
| 344 | - | for(nt = 0, c = nexttiled(clients); c; c = nexttiled(c->next), nt++); |
|
| 345 | - | showhide(stack, nt); |
|
| 341 | + | showhide(stack); |
|
| 346 | 342 | focus(NULL); |
|
| 347 | 343 | if(lt[sellt]->arrange) |
|
| 348 | 344 | lt[sellt]->arrange(); |
|
| 1330 | 1326 | } |
|
| 1331 | 1327 | ||
| 1332 | 1328 | void |
|
| 1333 | - | showhide(Client *c, unsigned int ntiled) { |
|
| 1329 | + | showhide(Client *c) { |
|
| 1334 | 1330 | if(!c) |
|
| 1335 | 1331 | return; |
|
| 1336 | 1332 | if(ISVISIBLE(c)) { /* show clients top down */ |
|
| 1337 | 1333 | XMoveWindow(dpy, c->win, c->x, c->y); |
|
| 1338 | 1334 | if(!lt[sellt]->arrange || c->isfloating) |
|
| 1339 | 1335 | resize(c, c->x, c->y, c->w, c->h); |
|
| 1340 | - | showhide(c->snext, ntiled); |
|
| 1336 | + | showhide(c->snext); |
|
| 1341 | 1337 | } |
|
| 1342 | 1338 | else { /* hide clients bottom up */ |
|
| 1343 | - | showhide(c->snext, ntiled); |
|
| 1339 | + | showhide(c->snext); |
|
| 1344 | 1340 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
|
| 1345 | 1341 | } |
|
| 1346 | 1342 | } |
|