about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-04 14:17:25 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-04 14:17:25 +0100
commit184471b4bbd1736794a76d2b703659de0339322b (patch)
treedcf73c074aeb9c3a06abdaaf93e3a15d27e02d05
parent21898c6049ea66dae34a660598684a7babec1097 (diff)
downloaddwm-184471b4bbd1736794a76d2b703659de0339322b.tar.gz
renamed drawtitle into drawclient
-rw-r--r--client.c4
-rw-r--r--draw.c4
-rw-r--r--dwm.h2
-rw-r--r--event.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/client.c b/client.c
index a6b7815..8110263 100644
--- a/client.c
+++ b/client.c
@@ -96,7 +96,7 @@ focus(Client *c) {
 		sel = c;
 		if(old) {
 			grabbuttons(old, False);
-			drawtitle(old);
+			drawclient(old);
 		}
 	}
 	if(c) {
@@ -104,7 +104,7 @@ focus(Client *c) {
 		c->snext = stack;
 		stack = c;
 		grabbuttons(c, True);
-		drawtitle(c);
+		drawclient(c);
 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
 	}
 	else
diff --git a/draw.c b/draw.c
index c4448db..9a469f9 100644
--- a/draw.c
+++ b/draw.c
@@ -102,7 +102,7 @@ drawall(void) {
 	Client *c;
 
 	for(c = clients; c; c = getnext(c->next))
-		drawtitle(c);
+		drawclient(c);
 	drawstatus();
 }
 
@@ -138,7 +138,7 @@ drawstatus(void) {
 }
 
 void
-drawtitle(Client *c) {
+drawclient(Client *c) {
 	if(c == sel && issel) {
 		drawstatus();
 		XUnmapWindow(dpy, c->twin);
diff --git a/dwm.h b/dwm.h
index a77c3bd..e6daa33 100644
--- a/dwm.h
+++ b/dwm.h
@@ -124,7 +124,7 @@ extern void unmanage(Client *c);		/* destroy c */
 /* draw.c */
 extern void drawall(void);			/* draw all visible client titles and the bar */
 extern void drawstatus(void);			/* draw the bar */
-extern void drawtitle(Client *c);		/* draw title of c */
+extern void drawclient(Client *c);		/* draw title of c */
 extern unsigned long getcolor(const char *colstr);	/* return color of colstr */
 extern void setfont(const char *fontstr);	/* set the font for DC */
 extern unsigned int textw(const char *text);	/* return the width of text in px*/
diff --git a/event.c b/event.c
index 0043ed2..c9ad387 100644
--- a/event.c
+++ b/event.c
@@ -236,7 +236,7 @@ expose(XEvent *e) {
 		if(barwin == ev->window)
 			drawstatus();
 		else if((c = getctitle(ev->window)))
-			drawtitle(c);
+			drawclient(c);
 	}
 }
 
@@ -320,7 +320,7 @@ propertynotify(XEvent *e) {
 		if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
 			updatetitle(c);
 			resizetitle(c);
-			drawtitle(c);
+			drawclient(c);
 		}
 	}
 }
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451