diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2009-03-19 13:06:15 +0000 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2009-03-19 13:06:15 +0000 |
| commit | 3632d7132fc212a50e62327858a3d15c0e81e030 (patch) | |
| tree | 67c33730c66116a48793eef618749e66ab21812e | |
| parent | applied Gottox' patches, and also removed usegrab (diff) | |
| download | dwm-3632d7132fc212a50e62327858a3d15c0e81e030.tar.gz dwm-3632d7132fc212a50e62327858a3d15c0e81e030.zip | |
applied Marc Andre Tanners showhide patch, the removal of ntiled
| -rw-r--r-- | config.mk | 4 | ||||
| -rw-r--r-- | dwm.c | 14 |
2 files changed, 7 insertions, 11 deletions
| @@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include | |||
| 11 | X11LIB = /usr/X11R6/lib | 11 | X11LIB = /usr/X11R6/lib |
| 12 | 12 | ||
| 13 | # Xinerama, un-comment if you want it | 13 | # Xinerama, un-comment if you want it |
| 14 | #XINERAMALIBS = -L${X11LIB} -lXinerama | 14 | XINERAMALIBS = -L${X11LIB} -lXinerama |
| 15 | #XINERAMAFLAGS = -DXINERAMA | 15 | XINERAMAFLAGS = -DXINERAMA |
| 16 | 16 | ||
| 17 | # includes and libs | 17 | # includes and libs |
| 18 | INCS = -I. -I/usr/include -I${X11INC} | 18 | INCS = -I. -I/usr/include -I${X11INC} |
| @@ -179,7 +179,7 @@ static void setclientstate(Client *c, long state); | |||
| 179 | static void setlayout(const Arg *arg); | 179 | static void setlayout(const Arg *arg); |
| 180 | static void setmfact(const Arg *arg); | 180 | static void setmfact(const Arg *arg); |
| 181 | static void setup(void); | 181 | static void setup(void); |
| 182 | static void showhide(Client *c, unsigned int ntiled); | 182 | static void showhide(Client *c); |
| 183 | static void sigchld(int signal); | 183 | static void sigchld(int signal); |
| 184 | static void spawn(const Arg *arg); | 184 | static void spawn(const Arg *arg); |
| 185 | static void tag(const Arg *arg); | 185 | static void tag(const Arg *arg); |
| @@ -338,11 +338,7 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h) { | |||
| 338 | 338 | ||
| 339 | void | 339 | void |
| 340 | arrange(void) { | 340 | arrange(void) { |
| 341 | unsigned int nt; | 341 | showhide(stack); |
| 342 | Client *c; | ||
| 343 | |||
| 344 | for(nt = 0, c = nexttiled(clients); c; c = nexttiled(c->next), nt++); | ||
| 345 | showhide(stack, nt); | ||
| 346 | focus(NULL); | 342 | focus(NULL); |
| 347 | if(lt[sellt]->arrange) | 343 | if(lt[sellt]->arrange) |
| 348 | lt[sellt]->arrange(); | 344 | lt[sellt]->arrange(); |
| @@ -1330,17 +1326,17 @@ setup(void) { | |||
| 1330 | } | 1326 | } |
| 1331 | 1327 | ||
| 1332 | void | 1328 | void |
| 1333 | showhide(Client *c, unsigned int ntiled) { | 1329 | showhide(Client *c) { |
| 1334 | if(!c) | 1330 | if(!c) |
| 1335 | return; | 1331 | return; |
| 1336 | if(ISVISIBLE(c)) { /* show clients top down */ | 1332 | if(ISVISIBLE(c)) { /* show clients top down */ |
| 1337 | XMoveWindow(dpy, c->win, c->x, c->y); | 1333 | XMoveWindow(dpy, c->win, c->x, c->y); |
| 1338 | if(!lt[sellt]->arrange || c->isfloating) | 1334 | if(!lt[sellt]->arrange || c->isfloating) |
| 1339 | resize(c, c->x, c->y, c->w, c->h); | 1335 | resize(c, c->x, c->y, c->w, c->h); |
| 1340 | showhide(c->snext, ntiled); | 1336 | showhide(c->snext); |
| 1341 | } | 1337 | } |
| 1342 | else { /* hide clients bottom up */ | 1338 | else { /* hide clients bottom up */ |
| 1343 | showhide(c->snext, ntiled); | 1339 | showhide(c->snext); |
| 1344 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); | 1340 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
| 1345 | } | 1341 | } |
| 1346 | } | 1342 | } |
