agreed with Sander
f8d2a29a
1 file(s) · +3 −6
| 411 | 411 | wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask; |
|
| 412 | 412 | mx = my = 0; |
|
| 413 | 413 | mw = DisplayWidth(dpy, screen); |
|
| 414 | - | if(bottom) { |
|
| 415 | - | mh = dc.font.ascent + dc.font.descent + 3; // match wmii |
|
| 416 | - | my = DisplayHeight(dpy, screen) - mh; |
|
| 417 | - | } |
|
| 418 | - | else |
|
| 419 | - | mh = dc.font.height + 2; |
|
| 414 | + | mh = dc.font.height + 2; |
|
| 415 | + | if(bottom) |
|
| 416 | + | my += DisplayHeight(dpy, screen) - mh; |
|
| 420 | 417 | win = XCreateWindow(dpy, root, mx, my, mw, mh, 0, |
|
| 421 | 418 | DefaultDepth(dpy, screen), CopyFromParent, |
|
| 422 | 419 | DefaultVisual(dpy, screen), |