dwm-meillo
changeset 487:be4f90c03582
applied Jukkas patch
author | arg@mmvi |
---|---|
date | Mon, 25 Sep 2006 08:21:51 +0200 |
parents | 8d564b9e3cd4 |
children | 0d2559f46b9e |
files | draw.c dwm.h event.c main.c tag.c view.c |
diffstat | 6 files changed, 19 insertions(+), 19 deletions(-) [+] |
line diff
1.1 --- a/draw.c Fri Sep 22 18:48:35 2006 +0200 1.2 +++ b/draw.c Mon Sep 25 08:21:51 2006 +0200 1.3 @@ -80,7 +80,7 @@ 1.4 /* extern */ 1.5 1.6 void 1.7 -drawall() { 1.8 +drawall(void) { 1.9 Client *c; 1.10 1.11 for(c = clients; c; c = getnext(c->next)) 1.12 @@ -89,7 +89,7 @@ 1.13 } 1.14 1.15 void 1.16 -drawstatus() { 1.17 +drawstatus(void) { 1.18 int i, x; 1.19 1.20 dc.x = dc.y = 0;
2.1 --- a/dwm.h Fri Sep 22 18:48:35 2006 +0200 2.2 +++ b/dwm.h Mon Sep 25 08:21:51 2006 +0200 2.3 @@ -121,16 +121,16 @@ 2.4 extern void unmanage(Client *c); /* destroy c */ 2.5 2.6 /* draw.c */ 2.7 -extern void drawall(); /* draw all visible client titles and the bar */ 2.8 -extern void drawstatus(); /* draw the bar */ 2.9 +extern void drawall(void); /* draw all visible client titles and the bar */ 2.10 +extern void drawstatus(void); /* draw the bar */ 2.11 extern void drawtitle(Client *c); /* draw title of c */ 2.12 extern unsigned long getcolor(const char *colstr); /* return color of colstr */ 2.13 extern void setfont(const char *fontstr); /* set the font for DC */ 2.14 extern unsigned int textw(const char *text); /* return the width of text in px*/ 2.15 2.16 /* event.c */ 2.17 -extern void grabkeys(); /* grab all keys defined in config.h */ 2.18 -extern void procevent(); /* process pending X events */ 2.19 +extern void grabkeys(void); /* grab all keys defined in config.h */ 2.20 +extern void procevent(void); /* process pending X events */ 2.21 2.22 /* main.c */ 2.23 extern int getproto(Window w); /* return protocol mask of WMProtocols property of w */ 2.24 @@ -139,7 +139,7 @@ 2.25 extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ 2.26 2.27 /* tag.c */ 2.28 -extern void initrregs(); /* initialize regexps of rules defined in config.h */ 2.29 +extern void initrregs(void); /* initialize regexps of rules defined in config.h */ 2.30 extern Client *getnext(Client *c); /* returns next visible client */ 2.31 extern Client *getprev(Client *c); /* returns previous visible client */ 2.32 extern void settags(Client *c, Client *trans); /* sets tags of c */ 2.33 @@ -160,7 +160,7 @@ 2.34 extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ 2.35 extern Bool isvisible(Client *c); /* returns True if client is visible */ 2.36 extern void resizecol(Arg *arg); /* resizes the master width with arg's index value */ 2.37 -extern void restack(); /* restores z layers of all clients */ 2.38 +extern void restack(void); /* restores z layers of all clients */ 2.39 extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ 2.40 extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ 2.41 extern void view(Arg *arg); /* views the tag with arg's index */
3.1 --- a/event.c Fri Sep 22 18:48:35 2006 +0200 3.2 +++ b/event.c Mon Sep 25 08:21:51 2006 +0200 3.3 @@ -170,13 +170,13 @@ 3.4 if(CLEANMASK(ev->state) != MODKEY) 3.5 return; 3.6 if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) { 3.7 - restack(c); 3.8 + restack(); 3.9 movemouse(c); 3.10 } 3.11 else if(ev->button == Button2) 3.12 zoom(NULL); 3.13 else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) { 3.14 - restack(c); 3.15 + restack(); 3.16 resizemouse(c); 3.17 } 3.18 } 3.19 @@ -388,7 +388,7 @@ 3.20 }; 3.21 3.22 void 3.23 -grabkeys() { 3.24 +grabkeys(void) { 3.25 static unsigned int len = sizeof(key) / sizeof(key[0]); 3.26 unsigned int i; 3.27 KeyCode code; 3.28 @@ -408,7 +408,7 @@ 3.29 } 3.30 3.31 void 3.32 -procevent() { 3.33 +procevent(void) { 3.34 XEvent ev; 3.35 3.36 while(XPending(dpy)) {
4.1 --- a/main.c Fri Sep 22 18:48:35 2006 +0200 4.2 +++ b/main.c Mon Sep 25 08:21:51 2006 +0200 4.3 @@ -38,7 +38,7 @@ 4.4 static Bool otherwm, readin; 4.5 4.6 static void 4.7 -cleanup() { 4.8 +cleanup(void) { 4.9 close(STDIN_FILENO); 4.10 while(sel) { 4.11 resize(sel, True, TopLeft); 4.12 @@ -58,7 +58,7 @@ 4.13 } 4.14 4.15 static void 4.16 -scan() { 4.17 +scan(void) { 4.18 unsigned int i, num; 4.19 Window *wins, d1, d2; 4.20 XWindowAttributes wa; 4.21 @@ -79,7 +79,7 @@ 4.22 } 4.23 4.24 static void 4.25 -setup() { 4.26 +setup(void) { 4.27 int i, j; 4.28 unsigned int mask; 4.29 Window w;
5.1 --- a/tag.c Fri Sep 22 18:48:35 2006 +0200 5.2 +++ b/tag.c Mon Sep 25 08:21:51 2006 +0200 5.3 @@ -45,7 +45,7 @@ 5.4 } 5.5 5.6 void 5.7 -initrregs() { 5.8 +initrregs(void) { 5.9 unsigned int i; 5.10 regex_t *reg; 5.11
6.1 --- a/view.c Fri Sep 22 18:48:35 2006 +0200 6.2 +++ b/view.c Mon Sep 25 08:21:51 2006 +0200 6.3 @@ -7,7 +7,7 @@ 6.4 /* static */ 6.5 6.6 static Client * 6.7 -minclient() { 6.8 +minclient(void) { 6.9 Client *c, *min; 6.10 6.11 if((clients && clients->isfloat) || arrange == dofloat) 6.12 @@ -25,7 +25,7 @@ 6.13 } 6.14 6.15 static void 6.16 -reorder() { 6.17 +reorder(void) { 6.18 Client *c, *newclients, *tail; 6.19 6.20 newclients = tail = NULL; 6.21 @@ -225,7 +225,7 @@ 6.22 } 6.23 6.24 void 6.25 -restack() { 6.26 +restack(void) { 6.27 Client *c; 6.28 XEvent ev; 6.29