aewl

changeset 647:fd2ea58b0b94

renamed drawtitle into drawclient
author Anselm R. Garbe <arg@suckless.org>
date Thu, 04 Jan 2007 14:17:25 +0100
parents 665e78838cbb
children 2359223e5691
files client.c draw.c dwm.h event.c
diffstat 4 files changed, 7 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/client.c	Tue Jan 02 16:29:01 2007 +0100
     1.2 +++ b/client.c	Thu Jan 04 14:17:25 2007 +0100
     1.3 @@ -96,7 +96,7 @@
     1.4  		sel = c;
     1.5  		if(old) {
     1.6  			grabbuttons(old, False);
     1.7 -			drawtitle(old);
     1.8 +			drawclient(old);
     1.9  		}
    1.10  	}
    1.11  	if(c) {
    1.12 @@ -104,7 +104,7 @@
    1.13  		c->snext = stack;
    1.14  		stack = c;
    1.15  		grabbuttons(c, True);
    1.16 -		drawtitle(c);
    1.17 +		drawclient(c);
    1.18  		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
    1.19  	}
    1.20  	else
     2.1 --- a/draw.c	Tue Jan 02 16:29:01 2007 +0100
     2.2 +++ b/draw.c	Thu Jan 04 14:17:25 2007 +0100
     2.3 @@ -102,7 +102,7 @@
     2.4  	Client *c;
     2.5  
     2.6  	for(c = clients; c; c = getnext(c->next))
     2.7 -		drawtitle(c);
     2.8 +		drawclient(c);
     2.9  	drawstatus();
    2.10  }
    2.11  
    2.12 @@ -138,7 +138,7 @@
    2.13  }
    2.14  
    2.15  void
    2.16 -drawtitle(Client *c) {
    2.17 +drawclient(Client *c) {
    2.18  	if(c == sel && issel) {
    2.19  		drawstatus();
    2.20  		XUnmapWindow(dpy, c->twin);
     3.1 --- a/dwm.h	Tue Jan 02 16:29:01 2007 +0100
     3.2 +++ b/dwm.h	Thu Jan 04 14:17:25 2007 +0100
     3.3 @@ -124,7 +124,7 @@
     3.4  /* draw.c */
     3.5  extern void drawall(void);			/* draw all visible client titles and the bar */
     3.6  extern void drawstatus(void);			/* draw the bar */
     3.7 -extern void drawtitle(Client *c);		/* draw title of c */
     3.8 +extern void drawclient(Client *c);		/* draw title of c */
     3.9  extern unsigned long getcolor(const char *colstr);	/* return color of colstr */
    3.10  extern void setfont(const char *fontstr);	/* set the font for DC */
    3.11  extern unsigned int textw(const char *text);	/* return the width of text in px*/
     4.1 --- a/event.c	Tue Jan 02 16:29:01 2007 +0100
     4.2 +++ b/event.c	Thu Jan 04 14:17:25 2007 +0100
     4.3 @@ -236,7 +236,7 @@
     4.4  		if(barwin == ev->window)
     4.5  			drawstatus();
     4.6  		else if((c = getctitle(ev->window)))
     4.7 -			drawtitle(c);
     4.8 +			drawclient(c);
     4.9  	}
    4.10  }
    4.11  
    4.12 @@ -320,7 +320,7 @@
    4.13  		if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
    4.14  			updatetitle(c);
    4.15  			resizetitle(c);
    4.16 -			drawtitle(c);
    4.17 +			drawclient(c);
    4.18  		}
    4.19  	}
    4.20  }