renamed drawstatus into drawbar

This commit is contained in:
Anselm R. Garbe 2007-09-15 12:36:42 +02:00
parent 5d831eaa94
commit 9800518ae3
6 changed files with 10 additions and 10 deletions

View file

@ -145,7 +145,7 @@ focus(Client *c) {
grabbuttons(c, True);
}
sel = c;
drawstatus();
drawbar();
if(!selscreen)
return;
if(c) {

2
draw.c
View file

@ -49,7 +49,7 @@ textnw(const char *text, unsigned int len) {
/* extern */
void
drawstatus(void) {
drawbar(void) {
int i, x;
dc.x = dc.y = 0;

2
dwm.h
View file

@ -104,7 +104,7 @@ void updatesizehints(Client *c); /* update the size hint variables of c */
void updatetitle(Client *c); /* update the name of c */
/* draw.c */
void drawstatus(void); /* draw the bar */
void drawbar(void); /* draw the bar */
void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */
unsigned int textw(const char *text); /* return the width of text in px*/

View file

@ -245,7 +245,7 @@ expose(XEvent *e) {
if(ev->count == 0) {
if(barwin == ev->window)
drawstatus();
drawbar();
}
}
@ -322,7 +322,7 @@ propertynotify(XEvent *e) {
if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
updatetitle(c);
if(c == sel)
drawstatus();
drawbar();
}
}
}

4
main.c
View file

@ -326,7 +326,7 @@ main(int argc, char *argv[]) {
xerrorxlib = XSetErrorHandler(xerror);
XSync(dpy, False);
setup();
drawstatus();
drawbar();
scan();
/* main event loop, also reads status text from stdin */
@ -359,7 +359,7 @@ main(int argc, char *argv[]) {
if(p > stext)
strncpy(stext, p + 1, sizeof stext);
}
drawstatus();
drawbar();
}
while(XPending(dpy)) {
XNextEvent(dpy, &ev);

View file

@ -213,7 +213,7 @@ restack(void) {
XEvent ev;
XWindowChanges wc;
drawstatus();
drawbar();
if(!sel)
return;
if(sel->isfloating || isfloating())
@ -255,7 +255,7 @@ setlayout(const char *arg) {
if(sel)
arrange();
else
drawstatus();
drawbar();
}
void
@ -307,7 +307,7 @@ togglemax(const char *arg) {
}
else
resize(sel, sel->rx, sel->ry, sel->rw, sel->rh, True);
drawstatus();
drawbar();
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}