Commit Diff


commit - 565697087b92db6eb09e896f60f68503ce0a4ac1
commit + 3632d7132fc212a50e62327858a3d15c0e81e030
blob - 40e74b03dd2f99b3ceaf66dbf9fc721a5f7303e5
blob + 957a92ca8ccdd8294d1f82b884cb86ec9a6a2268
--- config.mk
+++ config.mk
@@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
 X11LIB = /usr/X11R6/lib
 
 # Xinerama, un-comment if you want it
-#XINERAMALIBS = -L${X11LIB} -lXinerama
-#XINERAMAFLAGS = -DXINERAMA
+XINERAMALIBS = -L${X11LIB} -lXinerama
+XINERAMAFLAGS = -DXINERAMA
 
 # includes and libs
 INCS = -I. -I/usr/include -I${X11INC}
blob - 43dcdc0973b430722c6211c6da4d32ca2b135d18
blob + 86203060f7fadfa99f20fa362de0aa9de0e67378
--- dwm.c
+++ dwm.c
@@ -179,7 +179,7 @@ static void setclientstate(Client *c, long state);
 static void setlayout(const Arg *arg);
 static void setmfact(const Arg *arg);
 static void setup(void);
-static void showhide(Client *c, unsigned int ntiled);
+static void showhide(Client *c);
 static void sigchld(int signal);
 static void spawn(const Arg *arg);
 static void tag(const Arg *arg);
@@ -338,11 +338,7 @@ applysizehints(Client *c, int *x, int *y, int *w, int 
 
 void
 arrange(void) {
-	unsigned int nt;
-	Client *c;
-
-	for(nt = 0, c = nexttiled(clients); c; c = nexttiled(c->next), nt++);
-	showhide(stack, nt);
+	showhide(stack);
 	focus(NULL);
 	if(lt[sellt]->arrange)
 		lt[sellt]->arrange();
@@ -1330,17 +1326,17 @@ setup(void) {
 }
 
 void
-showhide(Client *c, unsigned int ntiled) {
+showhide(Client *c) {
 	if(!c)
 		return;
 	if(ISVISIBLE(c)) { /* show clients top down */
 		XMoveWindow(dpy, c->win, c->x, c->y);
 		if(!lt[sellt]->arrange || c->isfloating)
 			resize(c, c->x, c->y, c->w, c->h);
-		showhide(c->snext, ntiled);
+		showhide(c->snext);
 	}
 	else { /* hide clients bottom up */
-		showhide(c->snext, ntiled);
+		showhide(c->snext);
 		XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
 	}
 }