mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
dragmfact: minor if / else if correction if one is not using the flextile deluxe layout
This commit is contained in:
parent
cc495a80dc
commit
c7b84ec738
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user