Xinqi Bao's Git
projects
/
dmenu.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
3438af0
)
agreed with Sander
author
arg@mig29 <unknown>
Mon, 18 Dec 2006 12:25:11 +0000
(13:25 +0100)
committer
arg@mig29 <unknown>
Mon, 18 Dec 2006 12:25:11 +0000
(13:25 +0100)
main.c
diff
|
blob
|
history
diff --git
a/main.c
b/main.c
index
7fca45e
..
9ef0bae
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-411,12
+411,9
@@
main(int argc, char *argv[]) {
wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
mx = my = 0;
mw = DisplayWidth(dpy, screen);
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;
+ 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),
win = XCreateWindow(dpy, root, mx, my, mw, mh, 0,
DefaultDepth(dpy, screen), CopyFromParent,
DefaultVisual(dpy, screen),