diff options
| -rw-r--r-- | draw.c | 4 | ||||
| -rw-r--r-- | dwm.h | 12 | ||||
| -rw-r--r-- | event.c | 8 | ||||
| -rw-r--r-- | main.c | 6 | ||||
| -rw-r--r-- | tag.c | 2 | ||||
| -rw-r--r-- | view.c | 6 |
6 files changed, 19 insertions, 19 deletions
| @@ -80,7 +80,7 @@ drawtext(const char *text, unsigned long col[ColLast], Bool highlight) { | |||
| 80 | /* extern */ | 80 | /* extern */ |
| 81 | 81 | ||
| 82 | void | 82 | void |
| 83 | drawall() { | 83 | drawall(void) { |
| 84 | Client *c; | 84 | Client *c; |
| 85 | 85 | ||
| 86 | for(c = clients; c; c = getnext(c->next)) | 86 | for(c = clients; c; c = getnext(c->next)) |
| @@ -89,7 +89,7 @@ drawall() { | |||
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | void | 91 | void |
| 92 | drawstatus() { | 92 | drawstatus(void) { |
| 93 | int i, x; | 93 | int i, x; |
| 94 | 94 | ||
| 95 | dc.x = dc.y = 0; | 95 | dc.x = dc.y = 0; |
| @@ -121,16 +121,16 @@ extern void updatetitle(Client *c); /* update the name of c */ | |||
| 121 | extern void unmanage(Client *c); /* destroy c */ | 121 | extern void unmanage(Client *c); /* destroy c */ |
| 122 | 122 | ||
| 123 | /* draw.c */ | 123 | /* draw.c */ |
| 124 | extern void drawall(); /* draw all visible client titles and the bar */ | 124 | extern void drawall(void); /* draw all visible client titles and the bar */ |
| 125 | extern void drawstatus(); /* draw the bar */ | 125 | extern void drawstatus(void); /* draw the bar */ |
| 126 | extern void drawtitle(Client *c); /* draw title of c */ | 126 | extern void drawtitle(Client *c); /* draw title of c */ |
| 127 | extern unsigned long getcolor(const char *colstr); /* return color of colstr */ | 127 | extern unsigned long getcolor(const char *colstr); /* return color of colstr */ |
| 128 | extern void setfont(const char *fontstr); /* set the font for DC */ | 128 | extern void setfont(const char *fontstr); /* set the font for DC */ |
| 129 | extern unsigned int textw(const char *text); /* return the width of text in px*/ | 129 | extern unsigned int textw(const char *text); /* return the width of text in px*/ |
| 130 | 130 | ||
| 131 | /* event.c */ | 131 | /* event.c */ |
| 132 | extern void grabkeys(); /* grab all keys defined in config.h */ | 132 | extern void grabkeys(void); /* grab all keys defined in config.h */ |
| 133 | extern void procevent(); /* process pending X events */ | 133 | extern void procevent(void); /* process pending X events */ |
| 134 | 134 | ||
| 135 | /* main.c */ | 135 | /* main.c */ |
| 136 | extern int getproto(Window w); /* return protocol mask of WMProtocols property of w */ | 136 | extern int getproto(Window w); /* return protocol mask of WMProtocols property of w */ |
| @@ -139,7 +139,7 @@ extern void sendevent(Window w, Atom a, long value); /* send synthetic event to | |||
| 139 | extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ | 139 | extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
| 140 | 140 | ||
| 141 | /* tag.c */ | 141 | /* tag.c */ |
| 142 | extern void initrregs(); /* initialize regexps of rules defined in config.h */ | 142 | extern void initrregs(void); /* initialize regexps of rules defined in config.h */ |
| 143 | extern Client *getnext(Client *c); /* returns next visible client */ | 143 | extern Client *getnext(Client *c); /* returns next visible client */ |
| 144 | extern Client *getprev(Client *c); /* returns previous visible client */ | 144 | extern Client *getprev(Client *c); /* returns previous visible client */ |
| 145 | extern void settags(Client *c, Client *trans); /* sets tags of c */ | 145 | extern void settags(Client *c, Client *trans); /* sets tags of c */ |
| @@ -160,7 +160,7 @@ extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored | |||
| 160 | extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ | 160 | extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
| 161 | extern Bool isvisible(Client *c); /* returns True if client is visible */ | 161 | extern Bool isvisible(Client *c); /* returns True if client is visible */ |
| 162 | extern void resizecol(Arg *arg); /* resizes the master width with arg's index value */ | 162 | extern void resizecol(Arg *arg); /* resizes the master width with arg's index value */ |
| 163 | extern void restack(); /* restores z layers of all clients */ | 163 | extern void restack(void); /* restores z layers of all clients */ |
| 164 | extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ | 164 | extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |
| 165 | extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ | 165 | extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ |
| 166 | extern void view(Arg *arg); /* views the tag with arg's index */ | 166 | extern void view(Arg *arg); /* views the tag with arg's index */ |
| @@ -170,13 +170,13 @@ buttonpress(XEvent *e) { | |||
| 170 | if(CLEANMASK(ev->state) != MODKEY) | 170 | if(CLEANMASK(ev->state) != MODKEY) |
| 171 | return; | 171 | return; |
| 172 | if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) { | 172 | if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) { |
| 173 | restack(c); | 173 | restack(); |
| 174 | movemouse(c); | 174 | movemouse(c); |
| 175 | } | 175 | } |
| 176 | else if(ev->button == Button2) | 176 | else if(ev->button == Button2) |
| 177 | zoom(NULL); | 177 | zoom(NULL); |
| 178 | else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) { | 178 | else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) { |
| 179 | restack(c); | 179 | restack(); |
| 180 | resizemouse(c); | 180 | resizemouse(c); |
| 181 | } | 181 | } |
| 182 | } | 182 | } |
| @@ -388,7 +388,7 @@ void (*handler[LASTEvent]) (XEvent *) = { | |||
| 388 | }; | 388 | }; |
| 389 | 389 | ||
| 390 | void | 390 | void |
| 391 | grabkeys() { | 391 | grabkeys(void) { |
| 392 | static unsigned int len = sizeof(key) / sizeof(key[0]); | 392 | static unsigned int len = sizeof(key) / sizeof(key[0]); |
| 393 | unsigned int i; | 393 | unsigned int i; |
| 394 | KeyCode code; | 394 | KeyCode code; |
| @@ -408,7 +408,7 @@ grabkeys() { | |||
| 408 | } | 408 | } |
| 409 | 409 | ||
| 410 | void | 410 | void |
| 411 | procevent() { | 411 | procevent(void) { |
| 412 | XEvent ev; | 412 | XEvent ev; |
| 413 | 413 | ||
| 414 | while(XPending(dpy)) { | 414 | while(XPending(dpy)) { |
| @@ -38,7 +38,7 @@ static int (*xerrorxlib)(Display *, XErrorEvent *); | |||
| 38 | static Bool otherwm, readin; | 38 | static Bool otherwm, readin; |
| 39 | 39 | ||
| 40 | static void | 40 | static void |
| 41 | cleanup() { | 41 | cleanup(void) { |
| 42 | close(STDIN_FILENO); | 42 | close(STDIN_FILENO); |
| 43 | while(sel) { | 43 | while(sel) { |
| 44 | resize(sel, True, TopLeft); | 44 | resize(sel, True, TopLeft); |
| @@ -58,7 +58,7 @@ cleanup() { | |||
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | static void | 60 | static void |
| 61 | scan() { | 61 | scan(void) { |
| 62 | unsigned int i, num; | 62 | unsigned int i, num; |
| 63 | Window *wins, d1, d2; | 63 | Window *wins, d1, d2; |
| 64 | XWindowAttributes wa; | 64 | XWindowAttributes wa; |
| @@ -79,7 +79,7 @@ scan() { | |||
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | static void | 81 | static void |
| 82 | setup() { | 82 | setup(void) { |
| 83 | int i, j; | 83 | int i, j; |
| 84 | unsigned int mask; | 84 | unsigned int mask; |
| 85 | Window w; | 85 | Window w; |
| @@ -45,7 +45,7 @@ getprev(Client *c) { | |||
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | void | 47 | void |
| 48 | initrregs() { | 48 | initrregs(void) { |
| 49 | unsigned int i; | 49 | unsigned int i; |
| 50 | regex_t *reg; | 50 | regex_t *reg; |
| 51 | 51 | ||
| @@ -7,7 +7,7 @@ | |||
| 7 | /* static */ | 7 | /* static */ |
| 8 | 8 | ||
| 9 | static Client * | 9 | static Client * |
| 10 | minclient() { | 10 | minclient(void) { |
| 11 | Client *c, *min; | 11 | Client *c, *min; |
| 12 | 12 | ||
| 13 | if((clients && clients->isfloat) || arrange == dofloat) | 13 | if((clients && clients->isfloat) || arrange == dofloat) |
| @@ -25,7 +25,7 @@ nexttiled(Client *c) { | |||
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | static void | 27 | static void |
| 28 | reorder() { | 28 | reorder(void) { |
| 29 | Client *c, *newclients, *tail; | 29 | Client *c, *newclients, *tail; |
| 30 | 30 | ||
| 31 | newclients = tail = NULL; | 31 | newclients = tail = NULL; |
| @@ -225,7 +225,7 @@ resizecol(Arg *arg) { | |||
| 225 | } | 225 | } |
| 226 | 226 | ||
| 227 | void | 227 | void |
| 228 | restack() { | 228 | restack(void) { |
| 229 | Client *c; | 229 | Client *c; |
| 230 | XEvent ev; | 230 | XEvent ev; |
| 231 | 231 | ||
