From fa2ee99182d4997b8ee90f4f671b23d7ec7e52ae Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Mon, 18 Dec 2006 13:25:11 +0100 Subject: [PATCH] agreed with Sander --- dmenubar/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dmenubar/main.c b/dmenubar/main.c index 7fca45e..9ef0bae 100644 --- a/dmenubar/main.c +++ b/dmenubar/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),