about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2009-03-19 13:06:15 +0000
committerAnselm R Garbe <garbeam@gmail.com>2009-03-19 13:06:15 +0000
commit3632d7132fc212a50e62327858a3d15c0e81e030 (patch)
tree67c33730c66116a48793eef618749e66ab21812e
parent565697087b92db6eb09e896f60f68503ce0a4ac1 (diff)
downloaddwm-3632d7132fc212a50e62327858a3d15c0e81e030.tar.gz
applied Marc Andre Tanners showhide patch, the removal of ntiled 5.5
-rw-r--r--config.mk4
-rw-r--r--dwm.c14
2 files changed, 7 insertions, 11 deletions
diff --git a/config.mk b/config.mk
index 40e74b0..957a92c 100644
--- a/config.mk
+++ b/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}
diff --git a/dwm.c b/dwm.c
index 43dcdc0..8620306 100644
--- a/dwm.c
+++ b/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 *h) {
 
 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);
 	}
 }
tle='Blame the previous revision' href='/akspecs/ranger/blame/HACKING?h=v1.5.5&id=4ea0f69aed8d4c173d9abbd0a1bd76d6afe69ccb'>^
29028631 ^

a2853ab6 ^
3ee05c16 ^

f8f6f7f9 ^
f8f6f7f9 ^







f8f6f7f9 ^




7bf5f967 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79