dwm-meillo

diff wm.c @ 7:49e2fc9fb94f

new stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 11:27:56 +0200
parents e0cefb3981c8
children 7066ff2fe8bc
line diff
     1.1 --- a/wm.c	Tue Jul 11 11:10:05 2006 +0200
     1.2 +++ b/wm.c	Tue Jul 11 11:27:56 2006 +0200
     1.3 @@ -20,8 +20,9 @@
     1.4  Cursor cursor[CurLast];
     1.5  XRectangle rect, barrect;
     1.6  Bool running = True;
     1.7 +Client *client = NULL;
     1.8  
     1.9 -char *bartext;
    1.10 +char *bartext, tag[256];
    1.11  int screen, sel_screen;
    1.12  unsigned int lock_mask, numlock_mask;
    1.13  
    1.14 @@ -74,12 +75,11 @@
    1.15  	status = XGetWindowProperty(dpy, w, a, 0L, l, False, t, &real, &format,
    1.16  			&res, &extra, prop);
    1.17  
    1.18 -	if(status != Success || *prop == 0) {
    1.19 +	if(status != Success || *prop == NULL) {
    1.20  		return 0;
    1.21  	}
    1.22 -	if(res == 0) {
    1.23 +	if(res == 0)
    1.24  		free((void *) *prop);
    1.25 -	}
    1.26  	return res;
    1.27  }
    1.28  
    1.29 @@ -264,7 +264,7 @@
    1.30  			barrect.width, barrect.height, 0, DefaultDepth(dpy, screen),
    1.31  			CopyFromParent, DefaultVisual(dpy, screen),
    1.32  			CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
    1.33 -	bartext = 0;
    1.34 +	bartext = NULL;
    1.35  	XDefineCursor(dpy, barwin, cursor[CurNormal]);
    1.36  	XMapRaised(dpy, barwin);
    1.37  	draw_bar();