summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-05 16:35:45 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-05 16:35:45 +0100
commit51f6405b0d7a9ba34696cafbc08303b1e5b14cfa (patch)
tree11cc4a34d6cef00e5165a2f397cfc3054cce027e
parentremoved the term clients from dwm.1 (diff)
downloaddwm-51f6405b0d7a9ba34696cafbc08303b1e5b14cfa.tar.gz
dwm-51f6405b0d7a9ba34696cafbc08303b1e5b14cfa.zip
fixing some minor issues
-rw-r--r--config.mk4
-rw-r--r--view.c23
2 files changed, 14 insertions, 13 deletions
diff --git a/config.mk b/config.mk
index 1d73f2b..f65e6fc 100644
--- a/config.mk
+++ b/config.mk
@@ -17,8 +17,8 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
17# flags 17# flags
18CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" 18CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
19LDFLAGS = ${LIBS} 19LDFLAGS = ${LIBS}
20#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" 20CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
21#LDFLAGS = -g ${LIBS} 21LDFLAGS = -g ${LIBS}
22 22
23# Solaris 23# Solaris
24#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" 24#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
diff --git a/view.c b/view.c
index 793151d..9bd7584 100644
--- a/view.c
+++ b/view.c
@@ -32,17 +32,17 @@ pop(Client *c) {
32static void 32static void
33swap(Client *c1, Client *c2) { 33swap(Client *c1, Client *c2) {
34 Client tmp = *c1; 34 Client tmp = *c1;
35 Client *cp = c1->prev; 35 Client *c1p = c1->prev;
36 Client *cn = c1->next; 36 Client *c1n = c1->next;
37 Client *c2p = c2->prev;
38 Client *c2n = c2->next;
37 39
38 *c1 = *c2; 40 *c1 = *c2;
39 c1->prev = cp;
40 c1->next = cn;
41 cp = c2->prev;
42 cn = c2->next;
43 *c2 = tmp; 41 *c2 = tmp;
44 c2->prev = cp; 42 c1->prev = c1p;
45 c2->next = cn; 43 c1->next = c1n;
44 c2->prev = c2p;
45 c2->next = c2n;
46} 46}
47 47
48static void 48static void
@@ -192,10 +192,9 @@ focusprev(Arg *arg) {
192 192
193void 193void
194incnmaster(Arg *arg) { 194incnmaster(Arg *arg) {
195 if(nmaster + arg->i < 1 || (wah / (nmaster + arg->i) < bh)) 195 if((nmaster + arg->i < 1) || (wah / (nmaster + arg->i) < bh))
196 return; 196 return;
197 nmaster += arg->i; 197 nmaster += arg->i;
198
199 arrange(); 198 arrange();
200} 199}
201 200
@@ -305,7 +304,9 @@ zoom(Arg *arg) {
305 n++; 304 n++;
306 305
307 c = sel; 306 c = sel;
308 if(n <= nmaster || (arrange == dofloat)) 307 if(arrange == dofloat)
308 return;
309 else if(n <= nmaster)
309 pop(c); 310 pop(c);
310 else if(ismaster(sel)) { 311 else if(ismaster(sel)) {
311 if(!(c = topofstack())) 312 if(!(c = topofstack()))