diff options
author | arg@mig29 <unknown> | 2006-12-18 13:25:11 +0100 |
---|---|---|
committer | arg@mig29 <unknown> | 2006-12-18 13:25:11 +0100 |
commit | f8d2a29a20bfb93c701cf8091931ac84ba3fac5e (patch) | |
tree | 0becef91f263e7c32f2b5be5cbb7ecd0caf1b21f | |
parent | 3438af001adcb1d8ff840f89ae7cb5ef8589bde6 (diff) |
agreed with Sander
-rw-r--r-- | main.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -411,12 +411,9 @@ main(int argc, char *argv[]) { | |||
411 | wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask; | 411 | wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask; |
412 | mx = my = 0; | 412 | mx = my = 0; |
413 | mw = DisplayWidth(dpy, screen); | 413 | mw = DisplayWidth(dpy, screen); |
414 | if(bottom) { | 414 | mh = dc.font.height + 2; |
415 | mh = dc.font.ascent + dc.font.descent + 3; // match wmii | 415 | if(bottom) |
416 | my = DisplayHeight(dpy, screen) - mh; | 416 | my += DisplayHeight(dpy, screen) - mh; |
417 | } | ||
418 | else | ||
419 | mh = dc.font.height + 2; | ||
420 | win = XCreateWindow(dpy, root, mx, my, mw, mh, 0, | 417 | win = XCreateWindow(dpy, root, mx, my, mw, mh, 0, |
421 | DefaultDepth(dpy, screen), CopyFromParent, | 418 | DefaultDepth(dpy, screen), CopyFromParent, |
422 | DefaultVisual(dpy, screen), | 419 | DefaultVisual(dpy, screen), |