pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7695fa
)
cleaned up
author
Connor Lane Smith
<cls@lubutu.com>
Tue, 3 Aug 2010 16:18:24 +0000
(17:18 +0100)
committer
Connor Lane Smith
<cls@lubutu.com>
Tue, 3 Aug 2010 16:18:24 +0000
(17:18 +0100)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index
f19e798
..
227648c
100644
(file)
--- 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"))