aboutsummaryrefslogtreecommitdiff
path: root/vanitygaps.c
diff options
context:
space:
mode:
authorLuke Smith <[email protected]>2020-09-12 09:32:09 -0400
committerLuke Smith <[email protected]>2020-09-12 09:32:09 -0400
commitcf59ac74328dd8140cc5ab88c6234d2437f4d341 (patch)
treee194662506b445c3e2824df29d254a9997b41f54 /vanitygaps.c
parentsnippets (diff)
parentMerge pull request #107 from asparagusfox/patch-1 (diff)
downloadseiwm-cf59ac74328dd8140cc5ab88c6234d2437f4d341.tar.xz
seiwm-cf59ac74328dd8140cc5ab88c6234d2437f4d341.zip
Merge branch 'master' of github.com:LukeSmithxyz/dwm into master
Diffstat (limited to 'vanitygaps.c')
-rw-r--r--vanitygaps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vanitygaps.c b/vanitygaps.c
index 2b438be..7245e74 100644
--- a/vanitygaps.c
+++ b/vanitygaps.c
@@ -343,13 +343,13 @@ centeredfloatingmaster(Monitor *m)
/* go mfact box in the center if more than nmaster clients */
if (m->ww > m->wh) {
mw = m->ww * m->mfact - iv*mivf*(MIN(n, m->nmaster) - 1);
- mh = m->wh * 0.9;
+ mh = m->wh * 0.9 - 2*oh;
} else {
mw = m->ww * 0.9 - iv*mivf*(MIN(n, m->nmaster) - 1);
mh = m->wh * m->mfact;
}
mx = m->wx + (m->ww - mw) / 2;
- my = m->wy + (m->wh - mh - 2*oh) / 2;
+ my = m->wy + (m->wh - mh) / 2;
sx = m->wx + ov;
sy = m->wy + oh;