aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-12-18 13:25:11 +0100
committerarg@mig29 <unknown>2006-12-18 13:25:11 +0100
commitf8d2a29a20bfb93c701cf8091931ac84ba3fac5e (patch)
tree0becef91f263e7c32f2b5be5cbb7ecd0caf1b21f
parent3438af001adcb1d8ff840f89ae7cb5ef8589bde6 (diff)
downloaddmenu-f8d2a29a20bfb93c701cf8091931ac84ba3fac5e.tar.gz
dmenu-f8d2a29a20bfb93c701cf8091931ac84ba3fac5e.tar.bz2
dmenu-f8d2a29a20bfb93c701cf8091931ac84ba3fac5e.zip
agreed with Sander
-rw-r--r--main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/main.c b/main.c
index 7fca45e..9ef0bae 100644
--- a/main.c
+++ b/main.c
@@ -411,12 +411,9 @@ main(int argc, char *argv[]) {
wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
mx = my = 0;
mw = DisplayWidth(dpy, screen);
- if(bottom) {
- mh = dc.font.ascent + dc.font.descent + 3; // match wmii
- my = DisplayHeight(dpy, screen) - mh;
- }
- else
- mh = dc.font.height + 2;
+ mh = dc.font.height + 2;
+ if(bottom)
+ my += DisplayHeight(dpy, screen) - mh;
win = XCreateWindow(dpy, root, mx, my, mw, mh, 0,
DefaultDepth(dpy, screen), CopyFromParent,
DefaultVisual(dpy, screen),