renamed drawtitle into drawclient
This commit is contained in:
parent
21898c6049
commit
184471b4bb
4 changed files with 7 additions and 7 deletions
4
client.c
4
client.c
|
@ -96,7 +96,7 @@ focus(Client *c) {
|
||||||
sel = c;
|
sel = c;
|
||||||
if(old) {
|
if(old) {
|
||||||
grabbuttons(old, False);
|
grabbuttons(old, False);
|
||||||
drawtitle(old);
|
drawclient(old);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(c) {
|
if(c) {
|
||||||
|
@ -104,7 +104,7 @@ focus(Client *c) {
|
||||||
c->snext = stack;
|
c->snext = stack;
|
||||||
stack = c;
|
stack = c;
|
||||||
grabbuttons(c, True);
|
grabbuttons(c, True);
|
||||||
drawtitle(c);
|
drawclient(c);
|
||||||
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
|
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
4
draw.c
4
draw.c
|
@ -102,7 +102,7 @@ drawall(void) {
|
||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
for(c = clients; c; c = getnext(c->next))
|
for(c = clients; c; c = getnext(c->next))
|
||||||
drawtitle(c);
|
drawclient(c);
|
||||||
drawstatus();
|
drawstatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ drawstatus(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
drawtitle(Client *c) {
|
drawclient(Client *c) {
|
||||||
if(c == sel && issel) {
|
if(c == sel && issel) {
|
||||||
drawstatus();
|
drawstatus();
|
||||||
XUnmapWindow(dpy, c->twin);
|
XUnmapWindow(dpy, c->twin);
|
||||||
|
|
2
dwm.h
2
dwm.h
|
@ -124,7 +124,7 @@ extern void unmanage(Client *c); /* destroy c */
|
||||||
/* draw.c */
|
/* draw.c */
|
||||||
extern void drawall(void); /* draw all visible client titles and the bar */
|
extern void drawall(void); /* draw all visible client titles and the bar */
|
||||||
extern void drawstatus(void); /* draw 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 unsigned long getcolor(const char *colstr); /* return color of colstr */
|
||||||
extern void setfont(const char *fontstr); /* set the font for DC */
|
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*/
|
extern unsigned int textw(const char *text); /* return the width of text in px*/
|
||||||
|
|
4
event.c
4
event.c
|
@ -236,7 +236,7 @@ expose(XEvent *e) {
|
||||||
if(barwin == ev->window)
|
if(barwin == ev->window)
|
||||||
drawstatus();
|
drawstatus();
|
||||||
else if((c = getctitle(ev->window)))
|
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]) {
|
if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
|
||||||
updatetitle(c);
|
updatetitle(c);
|
||||||
resizetitle(c);
|
resizetitle(c);
|
||||||
drawtitle(c);
|
drawclient(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue