summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorarg@suckless.org <unknown>2008-06-09 10:26:01 +0200
committerarg@suckless.org <unknown>2008-06-09 10:26:01 +0200
commit0840c1367ca8a8a6ef414df85456fabeae3e4dfa (patch)
tree6a1eba961662cafdc6bc08c9a558b1d6cd63937e /dwm.c
parentupdated the for-loop with Gottox' proposal (diff)
downloaddwm-0840c1367ca8a8a6ef414df85456fabeae3e4dfa.tar.gz
dwm-0840c1367ca8a8a6ef414df85456fabeae3e4dfa.zip
applied nsz' textnw patch thank you
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/dwm.c b/dwm.c
index 123707c..92b1ff2 100644
--- a/dwm.c
+++ b/dwm.c
@@ -166,7 +166,7 @@ void setmfact(const void *arg);
166void setup(void); 166void setup(void);
167void spawn(const void *arg); 167void spawn(const void *arg);
168void tag(const void *arg); 168void tag(const void *arg);
169uint textnw(const char *text, uint len); 169int textnw(const char *text, uint len);
170void tile(void); 170void tile(void);
171void togglebar(const void *arg); 171void togglebar(const void *arg);
172void togglefloating(const void *arg); 172void togglefloating(const void *arg);
@@ -296,7 +296,8 @@ attachstack(Client *c) {
296 296
297void 297void
298buttonpress(XEvent *e) { 298buttonpress(XEvent *e) {
299 uint i, x, mask; 299 uint i, mask;
300 int x;
300 Client *c; 301 Client *c;
301 XButtonPressedEvent *ev = &e->xbutton; 302 XButtonPressedEvent *ev = &e->xbutton;
302 303
@@ -1308,7 +1309,8 @@ setmfact(const void *arg) {
1308 1309
1309void 1310void
1310setup(void) { 1311setup(void) {
1311 uint i, w; 1312 uint i;
1313 int w;
1312 XSetWindowAttributes wa; 1314 XSetWindowAttributes wa;
1313 1315
1314 /* init screen */ 1316 /* init screen */
@@ -1413,7 +1415,7 @@ tag(const void *arg) {
1413 } 1415 }
1414} 1416}
1415 1417
1416uint 1418int
1417textnw(const char *text, uint len) { 1419textnw(const char *text, uint len) {
1418 XRectangle r; 1420 XRectangle r;
1419 1421