diff options
Diffstat (limited to 'main.c')
| -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), |
