Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
fix
[dwm.git]
/
dwm.c
diff --git
a/dwm.c
b/dwm.c
index
9746c1d
..
3cff294
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-1306,7
+1306,7
@@
void
setmfact(const void *arg) {
double d = *((double*) arg);
setmfact(const void *arg) {
double d = *((double*) arg);
- if(!d ||
lt->arrange != til
e)
+ if(!d ||
!lt->arrang
e)
return;
d = d < 1.0 ? d + mfact : d - 1.0;
if(d < 0.1 || d > 0.9)
return;
d = d < 1.0 ? d + mfact : d - 1.0;
if(d < 0.1 || d > 0.9)
@@
-1719,7
+1719,7
@@
void
zoom(const void *arg) {
Client *c = sel;
zoom(const void *arg) {
Client *c = sel;
- if(
!lt->arrange || sel->isfloating
)
+ if(
ismax || !lt->arrange || (sel && sel->isfloating)
)
return;
if(c == nexttiled(clients))
if(!c || !(c = nexttiled(c->next)))
return;
if(c == nexttiled(clients))
if(!c || !(c = nexttiled(c->next)))