nah nah nah, I can't get used to the bottom bar, pushing the conditional dmenu again
[dmenu.git] / main.c
diff --git a/main.c b/main.c
index b5c29c3..f1f71fd 100644 (file)
--- a/main.c
+++ b/main.c
@@ -433,9 +433,8 @@ main(int argc, char *argv[]) {
        wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
        mw = DisplayWidth(dpy, screen);
        mh = dc.font.height + 2;
-       if(bottom)
-               my += DisplayHeight(dpy, screen) - mh;
-       win = XCreateWindow(dpy, root, 0, 0, mw, mh, 0,
+       win = XCreateWindow(dpy, root, 0,
+                       bottom ? DisplayHeight(dpy, screen) - mh : 0, mw, mh, 0,
                        DefaultDepth(dpy, screen), CopyFromParent,
                        DefaultVisual(dpy, screen),
                        CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);