diff options
| author | bakkeby <[email protected]> | 2020-08-20 13:03:33 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-08-20 13:03:33 +0200 |
| commit | c7b84ec738e7b1c1d1110f86bff38f95cf953a49 (patch) | |
| tree | c7a3ddcec2ea1b740562a1740cf81b144e994e85 /patch | |
| parent | cc495a80dcffdf728abd031b165b1dffb0456264 (diff) | |
| download | dwm-flexipatch-c7b84ec738e7b1c1d1110f86bff38f95cf953a49.tar.gz dwm-flexipatch-c7b84ec738e7b1c1d1110f86bff38f95cf953a49.zip | |
dragmfact: minor if / else if correction if one is not using the flextile deluxe layout
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/dragmfact.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/patch/dragmfact.c b/patch/dragmfact.c index 0532f2f..1bcf38c 100644 --- a/patch/dragmfact.c +++ b/patch/dragmfact.c @@ -25,8 +25,10 @@ dragmfact(const Arg *arg) ah = m->wh; aw = m->ww; + if (!n) + return; #if FLEXTILE_DELUXE_LAYOUT - if (m->lt[m->sellt]->arrange == &flextile) { + else if (m->lt[m->sellt]->arrange == &flextile) { int layout = m->ltaxis[LAYOUT]; if (layout < 0) { mirror = 1; @@ -72,7 +74,7 @@ dragmfact(const Arg *arg) /* do not allow mfact to be modified under certain conditions */ if (!m->lt[m->sellt]->arrange // floating layout - || (!n || (!fixed && m->nmaster && n <= m->nmaster)) // no master + || (!fixed && m->nmaster && n <= m->nmaster) // no master #if MONOCLE_LAYOUT || m->lt[m->sellt]->arrange == &monocle #endif // MONOCLE_LAYOUT |
