Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
hmm I doubt the usefulness of storing this information...
[dwm.git]
/
tile.c
diff --git
a/tile.c
b/tile.c
index
0955e63
..
114e84c
100644
(file)
--- a/
tile.c
+++ b/
tile.c
@@
-10,7
+10,7
@@
static double mwfact = MWFACT;
void
setmwfact(const char *arg) {
void
setmwfact(const char *arg) {
- double delta
, newfact
;
+ double delta;
if(!isarrange(tile))
return;
if(!isarrange(tile))
return;
@@
-19,14
+19,13
@@
setmwfact(const char *arg) {
mwfact = MWFACT;
else if(1 == sscanf(arg, "%lf", &delta)) {
if(arg[0] != '+' && arg[0] != '-')
mwfact = MWFACT;
else if(1 == sscanf(arg, "%lf", &delta)) {
if(arg[0] != '+' && arg[0] != '-')
-
ne
wfact = delta;
+
m
wfact = delta;
else
else
- newfact = mwfact + delta;
- if(newfact < 0.1)
- newfact = 0.1;
- else if(newfact > 0.9)
- newfact = 0.9;
- mwfact = newfact;
+ mwfact += delta;
+ if(mwfact < 0.1)
+ mwfact = 0.1;
+ else if(mwfact > 0.9)
+ mwfact = 0.9;
}
arrange();
}
}
arrange();
}