summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarg@mmvi <unknown>2006-09-25 08:21:51 +0200
committerarg@mmvi <unknown>2006-09-25 08:21:51 +0200
commit6b25d06d7d159bf89d740847fedc876ab0137b6b (patch)
tree49f46f104acb96c49eda4ae0f30415011ee57bf6
parentremoved all dotile checks (diff)
downloaddwm-6b25d06d7d159bf89d740847fedc876ab0137b6b.tar.gz
dwm-6b25d06d7d159bf89d740847fedc876ab0137b6b.zip
applied Jukkas patch
-rw-r--r--draw.c4
-rw-r--r--dwm.h12
-rw-r--r--event.c8
-rw-r--r--main.c6
-rw-r--r--tag.c2
-rw-r--r--view.c6
6 files changed, 19 insertions, 19 deletions
diff --git a/draw.c b/draw.c
index 65a3d51..3fbac5b 100644
--- a/draw.c
+++ b/draw.c
@@ -80,7 +80,7 @@ drawtext(const char *text, unsigned long col[ColLast], Bool highlight) {
80/* extern */ 80/* extern */
81 81
82void 82void
83drawall() { 83drawall(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
91void 91void
92drawstatus() { 92drawstatus(void) {
93 int i, x; 93 int i, x;
94 94
95 dc.x = dc.y = 0; 95 dc.x = dc.y = 0;
diff --git a/dwm.h b/dwm.h
index 178aab8..e749f2c 100644
--- a/dwm.h
+++ b/dwm.h
@@ -121,16 +121,16 @@ extern void updatetitle(Client *c); /* update the name of c */
121extern void unmanage(Client *c); /* destroy c */ 121extern void unmanage(Client *c); /* destroy c */
122 122
123/* draw.c */ 123/* draw.c */
124extern void drawall(); /* draw all visible client titles and the bar */ 124extern void drawall(void); /* draw all visible client titles and the bar */
125extern void drawstatus(); /* draw the bar */ 125extern void drawstatus(void); /* draw the bar */
126extern void drawtitle(Client *c); /* draw title of c */ 126extern void drawtitle(Client *c); /* draw title of c */
127extern unsigned long getcolor(const char *colstr); /* return color of colstr */ 127extern unsigned long getcolor(const char *colstr); /* return color of colstr */
128extern void setfont(const char *fontstr); /* set the font for DC */ 128extern void setfont(const char *fontstr); /* set the font for DC */
129extern unsigned int textw(const char *text); /* return the width of text in px*/ 129extern unsigned int textw(const char *text); /* return the width of text in px*/
130 130
131/* event.c */ 131/* event.c */
132extern void grabkeys(); /* grab all keys defined in config.h */ 132extern void grabkeys(void); /* grab all keys defined in config.h */
133extern void procevent(); /* process pending X events */ 133extern void procevent(void); /* process pending X events */
134 134
135/* main.c */ 135/* main.c */
136extern int getproto(Window w); /* return protocol mask of WMProtocols property of w */ 136extern 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
139extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ 139extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
140 140
141/* tag.c */ 141/* tag.c */
142extern void initrregs(); /* initialize regexps of rules defined in config.h */ 142extern void initrregs(void); /* initialize regexps of rules defined in config.h */
143extern Client *getnext(Client *c); /* returns next visible client */ 143extern Client *getnext(Client *c); /* returns next visible client */
144extern Client *getprev(Client *c); /* returns previous visible client */ 144extern Client *getprev(Client *c); /* returns previous visible client */
145extern void settags(Client *c, Client *trans); /* sets tags of c */ 145extern 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
160extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ 160extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */
161extern Bool isvisible(Client *c); /* returns True if client is visible */ 161extern Bool isvisible(Client *c); /* returns True if client is visible */
162extern void resizecol(Arg *arg); /* resizes the master width with arg's index value */ 162extern void resizecol(Arg *arg); /* resizes the master width with arg's index value */
163extern void restack(); /* restores z layers of all clients */ 163extern void restack(void); /* restores z layers of all clients */
164extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ 164extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */
165extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ 165extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */
166extern void view(Arg *arg); /* views the tag with arg's index */ 166extern void view(Arg *arg); /* views the tag with arg's index */
diff --git a/event.c b/event.c
index 9f120d7..83301bc 100644
--- a/event.c
+++ b/event.c
@@ -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
390void 390void
391grabkeys() { 391grabkeys(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
410void 410void
411procevent() { 411procevent(void) {
412 XEvent ev; 412 XEvent ev;
413 413
414 while(XPending(dpy)) { 414 while(XPending(dpy)) {
diff --git a/main.c b/main.c
index b3c753e..7cd3a32 100644
--- a/main.c
+++ b/main.c
@@ -38,7 +38,7 @@ static int (*xerrorxlib)(Display *, XErrorEvent *);
38static Bool otherwm, readin; 38static Bool otherwm, readin;
39 39
40static void 40static void
41cleanup() { 41cleanup(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
60static void 60static void
61scan() { 61scan(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
81static void 81static void
82setup() { 82setup(void) {
83 int i, j; 83 int i, j;
84 unsigned int mask; 84 unsigned int mask;
85 Window w; 85 Window w;
diff --git a/tag.c b/tag.c
index 962b484..eda1543 100644
--- a/tag.c
+++ b/tag.c
@@ -45,7 +45,7 @@ getprev(Client *c) {
45} 45}
46 46
47void 47void
48initrregs() { 48initrregs(void) {
49 unsigned int i; 49 unsigned int i;
50 regex_t *reg; 50 regex_t *reg;
51 51
diff --git a/view.c b/view.c
index ab1924a..44c0b30 100644
--- a/view.c
+++ b/view.c
@@ -7,7 +7,7 @@
7/* static */ 7/* static */
8 8
9static Client * 9static Client *
10minclient() { 10minclient(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
27static void 27static void
28reorder() { 28reorder(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
227void 227void
228restack() { 228restack(void) {
229 Client *c; 229 Client *c;
230 XEvent ev; 230 XEvent ev;
231 231