summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-10 22:16:48 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-10 22:16:48 +0200
commit439e15d09f6fa9271d3b49ef97194f0c80ebe161 (patch)
tree0f1abd8629f3fc226bb313ce29f00b6b8424f375 /menu.c
parent2de59d0f0927cec656fc4b9f6fc9ea178fb01c1e (diff)
added several other stuff
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/menu.c b/menu.c
index b4e08d40..7c84305c 100644
--- a/menu.c
+++ b/menu.c
@@ -53,7 +53,7 @@ static const int seek = 30; /* 30px */
static Brush brush = {0};
-static void draw_menu(void);
+static void draw_menu();
static void kpress(XKeyEvent * e);
static char version[] = "gridmenu - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n";
@@ -397,11 +397,10 @@ main(int argc, char *argv[])
wa.override_redirect = 1;
wa.background_pixmap = ParentRelative;
- wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask
- | SubstructureRedirectMask | SubstructureNotifyMask;
+ wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
rect.width = DisplayWidth(dpy, screen);
- rect.height = brush.font.height + 4;
+ rect.height = labelheight(&brush.font);
rect.y = DisplayHeight(dpy, screen) - rect.height;
rect.x = 0;
@@ -413,7 +412,7 @@ main(int argc, char *argv[])
XFlush(dpy);
/* pixmap */
- brush.gc = XCreateGC(dpy, win, 0, 0);
+ brush.gc = XCreateGC(dpy, root, 0, 0);
brush.drawable = XCreatePixmap(dpy, win, rect.width, rect.height,
DefaultDepth(dpy, screen));
XFlush(dpy);