renamed drawtitle into drawclient 184471b4
Anselm R. Garbe · 2007-01-04 14:17 4 file(s) · +7 −7
client.c +2 −2
96 96
		sel = c;
97 97
		if(old) {
98 98
			grabbuttons(old, False);
99 -
			drawtitle(old);
99 +
			drawclient(old);
100 100
		}
101 101
	}
102 102
	if(c) {
104 104
		c->snext = stack;
105 105
		stack = c;
106 106
		grabbuttons(c, True);
107 -
		drawtitle(c);
107 +
		drawclient(c);
108 108
		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
109 109
	}
110 110
	else
draw.c +2 −2
102 102
	Client *c;
103 103
104 104
	for(c = clients; c; c = getnext(c->next))
105 -
		drawtitle(c);
105 +
		drawclient(c);
106 106
	drawstatus();
107 107
}
108 108
138 138
}
139 139
140 140
void
141 -
drawtitle(Client *c) {
141 +
drawclient(Client *c) {
142 142
	if(c == sel && issel) {
143 143
		drawstatus();
144 144
		XUnmapWindow(dpy, c->twin);
dwm.h +1 −1
124 124
/* draw.c */
125 125
extern void drawall(void);			/* draw all visible client titles and the bar */
126 126
extern void drawstatus(void);			/* draw the bar */
127 -
extern void drawtitle(Client *c);		/* draw title of c */
127 +
extern void drawclient(Client *c);		/* draw title of c */
128 128
extern unsigned long getcolor(const char *colstr);	/* return color of colstr */
129 129
extern void setfont(const char *fontstr);	/* set the font for DC */
130 130
extern unsigned int textw(const char *text);	/* return the width of text in px*/
event.c +2 −2
236 236
		if(barwin == ev->window)
237 237
			drawstatus();
238 238
		else if((c = getctitle(ev->window)))
239 -
			drawtitle(c);
239 +
			drawclient(c);
240 240
	}
241 241
}
242 242
320 320
		if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
321 321
			updatetitle(c);
322 322
			resizetitle(c);
323 -
			drawtitle(c);
323 +
			drawclient(c);
324 324
		}
325 325
	}
326 326
}