mirror of git://git.suckless.org/dwm
fixing some minor issues
This commit is contained in:
parent
6096f8a113
commit
51f6405b0d
|
@ -17,8 +17,8 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
|
||||||
# flags
|
# flags
|
||||||
CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
|
CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
|
||||||
LDFLAGS = ${LIBS}
|
LDFLAGS = ${LIBS}
|
||||||
#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
|
CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
|
||||||
#LDFLAGS = -g ${LIBS}
|
LDFLAGS = -g ${LIBS}
|
||||||
|
|
||||||
# Solaris
|
# Solaris
|
||||||
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
||||||
|
|
23
view.c
23
view.c
|
@ -32,17 +32,17 @@ pop(Client *c) {
|
||||||
static void
|
static void
|
||||||
swap(Client *c1, Client *c2) {
|
swap(Client *c1, Client *c2) {
|
||||||
Client tmp = *c1;
|
Client tmp = *c1;
|
||||||
Client *cp = c1->prev;
|
Client *c1p = c1->prev;
|
||||||
Client *cn = c1->next;
|
Client *c1n = c1->next;
|
||||||
|
Client *c2p = c2->prev;
|
||||||
|
Client *c2n = c2->next;
|
||||||
|
|
||||||
*c1 = *c2;
|
*c1 = *c2;
|
||||||
c1->prev = cp;
|
|
||||||
c1->next = cn;
|
|
||||||
cp = c2->prev;
|
|
||||||
cn = c2->next;
|
|
||||||
*c2 = tmp;
|
*c2 = tmp;
|
||||||
c2->prev = cp;
|
c1->prev = c1p;
|
||||||
c2->next = cn;
|
c1->next = c1n;
|
||||||
|
c2->prev = c2p;
|
||||||
|
c2->next = c2n;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -192,10 +192,9 @@ focusprev(Arg *arg) {
|
||||||
|
|
||||||
void
|
void
|
||||||
incnmaster(Arg *arg) {
|
incnmaster(Arg *arg) {
|
||||||
if(nmaster + arg->i < 1 || (wah / (nmaster + arg->i) < bh))
|
if((nmaster + arg->i < 1) || (wah / (nmaster + arg->i) < bh))
|
||||||
return;
|
return;
|
||||||
nmaster += arg->i;
|
nmaster += arg->i;
|
||||||
|
|
||||||
arrange();
|
arrange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,7 +304,9 @@ zoom(Arg *arg) {
|
||||||
n++;
|
n++;
|
||||||
|
|
||||||
c = sel;
|
c = sel;
|
||||||
if(n <= nmaster || (arrange == dofloat))
|
if(arrange == dofloat)
|
||||||
|
return;
|
||||||
|
else if(n <= nmaster)
|
||||||
pop(c);
|
pop(c);
|
||||||
else if(ismaster(sel)) {
|
else if(ismaster(sel)) {
|
||||||
if(!(c = topofstack()))
|
if(!(c = topofstack()))
|
||||||
|
|
Loading…
Reference in New Issue