summaryrefslogtreecommitdiff
path: root/cmdtree.c
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 18:42:25 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 18:42:25 -0700
commit1ee2efb9667af35d5e5ccfea6824701c2fdbce44 (patch)
treefe3609e6a20cc3574fbd358651ec34e834bdecd9 /cmdtree.c
parent6e938b9a190ae6c41614b2377f44d4e0ffc28b78 (diff)
hardcode commands for now until I have a config format
Diffstat (limited to 'cmdtree.c')
-rw-r--r--cmdtree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmdtree.c b/cmdtree.c
index bed203c..74dc15a 100644
--- a/cmdtree.c
+++ b/cmdtree.c
@@ -72,7 +72,7 @@ setup(Drw *drw)
parentwin);
int vertwidth = 200;
mw = wa.width;
- mh = (lines + 1) * bh;
+ mh = 1 * bh;
switch (position) {
case POSITION_BOTTOM:
y = wa.height - mh;
@@ -95,8 +95,6 @@ setup(Drw *drw)
mw = vertwidth;
mh = wa.height;
}
- lines = 3;
- lines = MAX(lines, 0);
sep_width = drw_fontset_getwidth(drw, separator);
swa.override_redirect = True;