aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith2010-08-03 17:18:24 +0100
committerConnor Lane Smith2010-08-03 17:18:24 +0100
commit1c91c2a99c076b0878be42cf1ea6ca9a5c4120a3 (patch)
treeaad00cd43c68155e64d9d82f70f029da2aa854ba
parentb7695fa98cb75c1f2ac342227bbebf4e648f37e7 (diff)
cleaned up
-rw-r--r--dmenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmenu.c b/dmenu.c
index f19e798..227648c 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -109,6 +109,7 @@ drawmenu(void) {
dc->x = 0;
dc->y = 0;
drawrect(dc, 0, 0, mw, mh, BG(dc, normcol));
+
dc->h = dc->font.height + 2;
dc->y = topbar ? 0 : mh - dc->h;
/* print prompt? */
@@ -524,9 +525,8 @@ main(int argc, char *argv[]) {
else if(i == argc-1)
usage();
/* double flags */
- else if(!strcmp(argv[i], "-l")) {
+ else if(!strcmp(argv[i], "-l"))
lines = atoi(argv[++i]);
- }
else if(!strcmp(argv[i], "-p"))
prompt = argv[++i];
else if(!strcmp(argv[i], "-fn"))