agreed with Sander
This commit is contained in:
parent
3438af001a
commit
f8d2a29a20
9
main.c
9
main.c
|
@ -411,12 +411,9 @@ main(int argc, char *argv[]) {
|
||||||
wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
|
wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
|
||||||
mx = my = 0;
|
mx = my = 0;
|
||||||
mw = DisplayWidth(dpy, screen);
|
mw = DisplayWidth(dpy, screen);
|
||||||
if(bottom) {
|
mh = dc.font.height + 2;
|
||||||
mh = dc.font.ascent + dc.font.descent + 3; // match wmii
|
if(bottom)
|
||||||
my = DisplayHeight(dpy, screen) - mh;
|
my += DisplayHeight(dpy, screen) - mh;
|
||||||
}
|
|
||||||
else
|
|
||||||
mh = dc.font.height + 2;
|
|
||||||
win = XCreateWindow(dpy, root, mx, my, mw, mh, 0,
|
win = XCreateWindow(dpy, root, mx, my, mw, mh, 0,
|
||||||
DefaultDepth(dpy, screen), CopyFromParent,
|
DefaultDepth(dpy, screen), CopyFromParent,
|
||||||
DefaultVisual(dpy, screen),
|
DefaultVisual(dpy, screen),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user