diff options
| author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-10 22:16:48 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-10 22:16:48 +0200 |
| commit | 439e15d09f6fa9271d3b49ef97194f0c80ebe161 (patch) | |
| tree | 0f1abd8629f3fc226bb313ce29f00b6b8424f375 /menu.c | |
| parent | renamed gridmenu.c into menu.c (diff) | |
| download | dwm-439e15d09f6fa9271d3b49ef97194f0c80ebe161.tar.gz dwm-439e15d09f6fa9271d3b49ef97194f0c80ebe161.zip | |
added several other stuff
Diffstat (limited to 'menu.c')
| -rw-r--r-- | menu.c | 9 |
1 files changed, 4 insertions, 5 deletions
| @@ -53,7 +53,7 @@ static const int seek = 30; /* 30px */ | |||
| 53 | 53 | ||
| 54 | static Brush brush = {0}; | 54 | static Brush brush = {0}; |
| 55 | 55 | ||
| 56 | static void draw_menu(void); | 56 | static void draw_menu(); |
| 57 | static void kpress(XKeyEvent * e); | 57 | static void kpress(XKeyEvent * e); |
| 58 | 58 | ||
| 59 | static char version[] = "gridmenu - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; | 59 | static 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); |
