some other simplifications 868159fd
Anselm R. Garbe · 2006-09-11 17:31 1 file(s) · +11 −11
dwm.h +11 −11
97 97
extern void drawtitle(Client *c);		/* draw title of c */
98 98
extern unsigned long getcolor(const char *colstr);	/* return color of colstr */
99 99
extern void setfont(const char *fontstr);	/* set the font for DC */
100 -
extern unsigned int textw(const char *text);	/* return the text width of text */
100 +
extern unsigned int textw(const char *text);	/* return the width of text in px*/
101 101
102 102
/* event.c */
103 103
extern void grabkeys();				/* grab all keys defined in config.h */
114 114
extern Client *getnext(Client *c);		/* returns next visible client */
115 115
extern Client *getprev(Client *c);		/* returns previous visible client */
116 116
extern void settags(Client *c, Client *trans);	/* sets tags of c */
117 -
extern void tag(Arg *arg);			/* tags c accordingly to arg's index */
118 -
extern void toggletag(Arg *arg);		/* toggles c tags accordingly to arg's index */
117 +
extern void tag(Arg *arg);			/* tags c with arg's index */
118 +
extern void toggletag(Arg *arg);		/* toggles c tags with arg's index */
119 119
120 120
/* util.c */
121 121
extern void *emallocz(unsigned int size);	/* allocates zero-initialized memory, exits on error */
122 -
extern void eprint(const char *errstr, ...);	/* prints error string and exits with return code 1 */
122 +
extern void eprint(const char *errstr, ...);	/* prints errstr and exits with 1 */
123 123
extern void *erealloc(void *ptr, unsigned int size);	/* reallocates memory, exits on error */
124 -
extern void spawn(Arg *arg);			/* forks a new subprocess accordingly to arg's cmd */
124 +
extern void spawn(Arg *arg);			/* forks a new subprocess with to arg's cmd */
125 125
126 126
/* view.c */
127 127
extern void detach(Client *c);			/* detaches c from global client list */
128 -
extern void dofloat(Arg *arg);			/* arranges all windows in a floating way, arg is ignored */
129 -
extern void dotile(Arg *arg);			/* arranges all windows in a tiled way, arg is ignored */
128 +
extern void dofloat(Arg *arg);			/* arranges all windows floating, arg is ignored */
129 +
extern void dotile(Arg *arg);			/* arranges all windows, arg is ignored */
130 130
extern void focusnext(Arg *arg);		/* focuses next visible client, arg is ignored  */
131 131
extern void focusprev(Arg *arg);		/* focuses previous visible client, arg is ignored */
132 132
extern Bool isvisible(Client *c);		/* returns True if client is visible */
133 -
extern void resizecol(Arg *arg);		/* resizes the master width accordingly to arg's index value */
133 +
extern void resizecol(Arg *arg);		/* resizes the master width with arg's index value */
134 134
extern void restack();				/* restores z layers of all clients */
135 -
extern void togglemode(Arg *arg);		/* toggles global arrange function (between dotile and dofloat) */
136 -
extern void toggleview(Arg *arg);		/* toggles the tag accordingly to arg's index (in)visible */
137 -
extern void view(Arg *arg);			/* views the tag accordingly to arg's index */
135 +
extern void togglemode(Arg *arg);		/* toggles global arrange function (dotile/dofloat) */
136 +
extern void toggleview(Arg *arg);		/* toggles the tag with arg's index (in)visible */
137 +
extern void view(Arg *arg);			/* views the tag with arg's index */
138 138
extern void viewall(Arg *arg);			/* views all tags, arg is ignored */
139 139
extern void zoom(Arg *arg);			/* zooms the focused client to master column, arg is ignored */