summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_flexwintitle.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-08-24 15:03:55 +0200
committerbakkeby <[email protected]>2020-08-24 15:03:55 +0200
commitdf57bdeb64a1673276ab6fb2ed00fd6c9ad3c2b1 (patch)
tree0070900225cca2864bc367ebe14763dc363e6799 /patch/bar_flexwintitle.c
parent7ce66bf122fd8b7288a5e0ddf0d0e312a0f08456 (diff)
downloaddwm-flexipatch-df57bdeb64a1673276ab6fb2ed00fd6c9ad3c2b1.tar.gz
dwm-flexipatch-df57bdeb64a1673276ab6fb2ed00fd6c9ad3c2b1.zip
Identified and fixed a few more cross-compilation issues
Diffstat (limited to 'patch/bar_flexwintitle.c')
-rw-r--r--patch/bar_flexwintitle.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/patch/bar_flexwintitle.c b/patch/bar_flexwintitle.c
index 22b5b3c..8a460b2 100644
--- a/patch/bar_flexwintitle.c
+++ b/patch/bar_flexwintitle.c
@@ -258,12 +258,14 @@ flextitlecalculate(
if (i < m->nmaster)
clientsnmaster++;
+ #if FLEXTILE_DELUXE_LAYOUT
else if (m->nstack) {
if (clientsnstack < m->nstack)
clientsnstack++;
else
clientsnstack2++;
}
+ #endif // FLEXTILE_DELUXE_LAYOUT
else if (i % 2)
clientsnstack++;
else
@@ -366,7 +368,12 @@ flextitlecalculate(
r = num % den; // weight rest width
rw = r / n; // rest incr per client
rr = r % n; // rest rest
- if ((!center && !dualstack) || (center && n <= m->nmaster + (m->nstack ? m->nstack : 1))) {
+ #if FLEXTILE_DELUXE_LAYOUT
+ if ((!center && !dualstack) || (center && n <= m->nmaster + (m->nstack ? m->nstack : 1)))
+ #else
+ if ((!center && !dualstack) || (center && n <= m->nmaster + 1))
+ #endif // FLEXTILE_DELUXE_LAYOUT
+ {
clientsnstack += clientsnstack2;
clientsnstack2 = 0;
if (groupactive == GRP_STACK2)