agreed with Sander

This commit is contained in:
arg@mig29 2006-12-18 13:25:11 +01:00
parent 3438af001a
commit f8d2a29a20
1 changed files with 3 additions and 6 deletions

7
main.c
View File

@ -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;
if(bottom)
my += DisplayHeight(dpy, screen) - mh;
win = XCreateWindow(dpy, root, mx, my, mw, mh, 0,
DefaultDepth(dpy, screen), CopyFromParent,
DefaultVisual(dpy, screen),