aewl
changeset 454:ffb462fb7903
small change to comments, renamed two set* functions in client.c into update*
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Mon, 11 Sep 2006 10:00:56 +0200 |
parents | f30f937f9e52 |
children | 4e3e22673073 |
files | client.c dwm.h event.c |
diffstat | 3 files changed, 17 insertions(+), 17 deletions(-) [+] |
line diff
1.1 --- a/client.c Mon Sep 11 08:58:58 2006 +0200 1.2 +++ b/client.c Mon Sep 11 10:00:56 2006 +0200 1.3 @@ -223,7 +223,7 @@ 1.4 c->th = bh; 1.5 1.6 c->border = 0; 1.7 - setsize(c); 1.8 + updatesize(c); 1.9 1.10 if(c->x + c->w + 2 > sw) 1.11 c->x = sw - c->w - 2; 1.12 @@ -260,7 +260,7 @@ 1.13 c->snext = stack; 1.14 stack = clients = c; 1.15 1.16 - settitle(c); 1.17 + updatetitle(c); 1.18 ban(c); 1.19 XMapWindow(dpy, c->win); 1.20 XMapWindow(dpy, c->twin); 1.21 @@ -309,7 +309,7 @@ 1.22 } 1.23 1.24 void 1.25 -setsize(Client *c) 1.26 +updatesize(Client *c) 1.27 { 1.28 long msize; 1.29 XSizeHints size; 1.30 @@ -348,7 +348,7 @@ 1.31 } 1.32 1.33 void 1.34 -settitle(Client *c) 1.35 +updatetitle(Client *c) 1.36 { 1.37 char **list = NULL; 1.38 int n;
2.1 --- a/dwm.h Mon Sep 11 08:58:58 2006 +0200 2.2 +++ b/dwm.h Mon Sep 11 10:00:56 2006 +0200 2.3 @@ -66,19 +66,19 @@ 2.4 extern char stext[1024]; /* status text */ 2.5 extern int bx, by, bw, bh, bmw; /* bar geometry, bar mode label width */ 2.6 extern int mw, screen, sx, sy, sw, sh; /* screen geometry, master width */ 2.7 -extern unsigned int ntags, numlockmask; /* number of tags, and dynamic lock mask */ 2.8 +extern unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ 2.9 extern void (*handler[LASTEvent])(XEvent *); /* event handler */ 2.10 extern void (*arrange)(Arg *); /* arrange function, indicates mode */ 2.11 extern Atom wmatom[WMLast], netatom[NetLast]; 2.12 extern Bool running, issel, maximized, *seltag; /* seltag is array of Bool */ 2.13 -extern Client *clients, *sel, *stack; /* Client containers */ 2.14 +extern Client *clients, *sel, *stack; /* global cleint list and stack */ 2.15 extern Cursor cursor[CurLast]; 2.16 -extern DC dc; /* draw context for everything */ 2.17 +extern DC dc; /* global draw context */ 2.18 extern Display *dpy; 2.19 extern Window root, barwin; 2.20 2.21 /* client.c */ 2.22 -extern void ban(Client *c); /* ban client from screen */ 2.23 +extern void ban(Client *c); /* ban c from screen */ 2.24 extern void focus(Client *c); /* focus c, c may be NULL */ 2.25 extern Client *getclient(Window w); /* return client of w */ 2.26 extern Client *getctitle(Window w); /* return client of title window */ 2.27 @@ -86,8 +86,8 @@ 2.28 extern void killclient(Arg *arg); /* kill c nicely */ 2.29 extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ 2.30 extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/ 2.31 -extern void setsize(Client *c); /* set the size structs of c */ 2.32 -extern void settitle(Client *c); /* set the name of c */ 2.33 +extern void updatesize(Client *c); /* update the size structs of c */ 2.34 +extern void updatetitle(Client *c); /* update the name of c */ 2.35 extern void togglemax(Arg *arg); /* (un)maximize c */ 2.36 extern void unmanage(Client *c); /* destroy c */ 2.37 2.38 @@ -113,7 +113,7 @@ 2.39 extern void initrregs(); /* initialize regexps of rules defined in config.h */ 2.40 extern Client *getnext(Client *c); /* returns next visible client */ 2.41 extern Client *getprev(Client *c); /* returns previous visible client */ 2.42 -extern void settags(Client *c, Client *trans); /* updates tags of c */ 2.43 +extern void settags(Client *c, Client *trans); /* sets tags of c */ 2.44 extern void tag(Arg *arg); /* tags c accordingly to arg's index */ 2.45 extern void toggletag(Arg *arg); /* toggles c tags accordingly to arg's index */ 2.46 2.47 @@ -132,8 +132,8 @@ 2.48 extern Bool isvisible(Client *c); /* returns True if client is visible */ 2.49 extern void resizecol(Arg *arg); /* resizes the master width accordingly to arg's index value */ 2.50 extern void restack(); /* restores z layers of all clients */ 2.51 -extern void togglemode(Arg *arg); /* toggles global arrange mode (between dotile and dofloat) */ 2.52 -extern void toggleview(Arg *arg); /* makes the tag accordingly to arg's index (in)visible */ 2.53 -extern void view(Arg *arg); /* makes the tag accordingly to arg's index visible */ 2.54 -extern void viewall(Arg *arg); /* makes all tags visible, arg is ignored */ 2.55 +extern void togglemode(Arg *arg); /* toggles global arrange function (between dotile and dofloat) */ 2.56 +extern void toggleview(Arg *arg); /* toggles the tag accordingly to arg's index (in)visible */ 2.57 +extern void view(Arg *arg); /* views the tag accordingly to arg's index */ 2.58 +extern void viewall(Arg *arg); /* views all tags, arg is ignored */ 2.59 extern void zoom(Arg *arg); /* zooms the focused client to master column, arg is ignored */
3.1 --- a/event.c Mon Sep 11 08:58:58 2006 +0200 3.2 +++ b/event.c Mon Sep 11 10:00:56 2006 +0200 3.3 @@ -343,11 +343,11 @@ 3.4 arrange(NULL); 3.5 break; 3.6 case XA_WM_NORMAL_HINTS: 3.7 - setsize(c); 3.8 + updatesize(c); 3.9 break; 3.10 } 3.11 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { 3.12 - settitle(c); 3.13 + updatetitle(c); 3.14 drawtitle(c); 3.15 } 3.16 }