dwm-meillo

diff menu.c @ 5:e5018cae273f

added several other stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 22:16:48 +0200
parents 991bd8b0771e
children e0cefb3981c8
line diff
     1.1 --- a/menu.c	Mon Jul 10 19:47:35 2006 +0200
     1.2 +++ b/menu.c	Mon Jul 10 22:16:48 2006 +0200
     1.3 @@ -53,7 +53,7 @@
     1.4  
     1.5  static Brush brush = {0};
     1.6  
     1.7 -static void draw_menu(void);
     1.8 +static void draw_menu();
     1.9  static void kpress(XKeyEvent * e);
    1.10  
    1.11  static char version[] = "gridmenu - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n";
    1.12 @@ -397,11 +397,10 @@
    1.13  
    1.14  	wa.override_redirect = 1;
    1.15  	wa.background_pixmap = ParentRelative;
    1.16 -	wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask
    1.17 -		| SubstructureRedirectMask | SubstructureNotifyMask;
    1.18 +	wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
    1.19  
    1.20  	rect.width = DisplayWidth(dpy, screen);
    1.21 -	rect.height = brush.font.height + 4;
    1.22 +	rect.height = labelheight(&brush.font);
    1.23  	rect.y = DisplayHeight(dpy, screen) - rect.height;
    1.24  	rect.x = 0;
    1.25  
    1.26 @@ -413,7 +412,7 @@
    1.27  	XFlush(dpy);
    1.28  
    1.29  	/* pixmap */
    1.30 -	brush.gc = XCreateGC(dpy, win, 0, 0);
    1.31 +	brush.gc = XCreateGC(dpy, root, 0, 0);
    1.32  	brush.drawable = XCreatePixmap(dpy, win, rect.width, rect.height,
    1.33  			DefaultDepth(dpy, screen));
    1.34  	XFlush(dpy);