changeset: 987:ea0cef59c3a3
tag: tip
user: Anselm R. Garbe <garbeam_AT_gmail.com>
date: Sat Sep 15 12:36:42 2007 +0200
summary: renamed drawstatus into drawbar
diff -r 2d6f17254ba8 -r ea0cef59c3a3 client.c
--- a/client.c Sat Sep 15 10:35:18 2007 +0200
+++ b/client.c Sat Sep 15 12:36:42 2007 +0200
@@ -145,7 +145,7 @@ focus(Client *c) {
grabbuttons(c, True);
}
sel = c;
- drawstatus();
+ drawbar();
if(!selscreen)
return;
if(c) {
diff -r 2d6f17254ba8 -r ea0cef59c3a3 draw.c
--- a/draw.c Sat Sep 15 10:35:18 2007 +0200
+++ b/draw.c Sat Sep 15 12:36:42 2007 +0200
@@ -49,7 +49,7 @@ textnw(const char *text, unsigned int le
/* extern */
void
-drawstatus(void) {
+drawbar(void) {
int i, x;
dc.x = dc.y = 0;
diff -r 2d6f17254ba8 -r ea0cef59c3a3 dwm.h
--- a/dwm.h Sat Sep 15 10:35:18 2007 +0200
+++ b/dwm.h Sat Sep 15 12:36:42 2007 +0200
@@ -104,7 +104,7 @@ void updatetitle(Client *c); /* update
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*/
diff -r 2d6f17254ba8 -r ea0cef59c3a3 event.c
--- a/event.c Sat Sep 15 10:35:18 2007 +0200
+++ b/event.c Sat Sep 15 12:36:42 2007 +0200
@@ -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();
}
}
}
diff -r 2d6f17254ba8 -r ea0cef59c3a3 main.c
--- a/main.c Sat Sep 15 10:35:18 2007 +0200
+++ b/main.c Sat Sep 15 12:36:42 2007 +0200
@@ -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);
diff -r 2d6f17254ba8 -r ea0cef59c3a3 screen.c
--- a/screen.c Sat Sep 15 10:35:18 2007 +0200
+++ b/screen.c Sat Sep 15 12:36:42 2007 +0200
@@ -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));
}
Received on Sat Sep 15 2007 - 12:36:41 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:05 UTC