summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
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 b4e08d4..7c84305 100644
--- a/menu.c
+++ b/menu.c
@@ -53,7 +53,7 @@ static const int seek = 30; /* 30px */
53 53
54static Brush brush = {0}; 54static Brush brush = {0};
55 55
56static void draw_menu(void); 56static void draw_menu();
57static void kpress(XKeyEvent * e); 57static void kpress(XKeyEvent * e);
58 58
59static char version[] = "gridmenu - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; 59static char version[] = "gridmenu - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n";
@@ -397,11 +397,10 @@ main(int argc, char *argv[])
397 397
398 wa.override_redirect = 1; 398 wa.override_redirect = 1;
399 wa.background_pixmap = ParentRelative; 399 wa.background_pixmap = ParentRelative;
400 wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask 400 wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
401 | SubstructureRedirectMask | SubstructureNotifyMask;
402 401
403 rect.width = DisplayWidth(dpy, screen); 402 rect.width = DisplayWidth(dpy, screen);
404 rect.height = brush.font.height + 4; 403 rect.height = labelheight(&brush.font);
405 rect.y = DisplayHeight(dpy, screen) - rect.height; 404 rect.y = DisplayHeight(dpy, screen) - rect.height;
406 rect.x = 0; 405 rect.x = 0;
407 406
@@ -413,7 +412,7 @@ main(int argc, char *argv[])
413 XFlush(dpy); 412 XFlush(dpy);
414 413
415 /* pixmap */ 414 /* pixmap */
416 brush.gc = XCreateGC(dpy, win, 0, 0); 415 brush.gc = XCreateGC(dpy, root, 0, 0);
417 brush.drawable = XCreatePixmap(dpy, win, rect.width, rect.height, 416 brush.drawable = XCreatePixmap(dpy, win, rect.width, rect.height,
418 DefaultDepth(dpy, screen)); 417 DefaultDepth(dpy, screen));
419 XFlush(dpy); 418 XFlush(dpy);