diff options
| author | arg@suckless.org <unknown> | 2008-06-09 10:26:01 +0200 |
|---|---|---|
| committer | arg@suckless.org <unknown> | 2008-06-09 10:26:01 +0200 |
| commit | 0840c1367ca8a8a6ef414df85456fabeae3e4dfa (patch) | |
| tree | 6a1eba961662cafdc6bc08c9a558b1d6cd63937e /dwm.c | |
| parent | updated the for-loop with Gottox' proposal (diff) | |
| download | dwm-0840c1367ca8a8a6ef414df85456fabeae3e4dfa.tar.gz dwm-0840c1367ca8a8a6ef414df85456fabeae3e4dfa.zip | |
applied nsz' textnw patch thank you
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -166,7 +166,7 @@ void setmfact(const void *arg); | |||
| 166 | void setup(void); | 166 | void setup(void); |
| 167 | void spawn(const void *arg); | 167 | void spawn(const void *arg); |
| 168 | void tag(const void *arg); | 168 | void tag(const void *arg); |
| 169 | uint textnw(const char *text, uint len); | 169 | int textnw(const char *text, uint len); |
| 170 | void tile(void); | 170 | void tile(void); |
| 171 | void togglebar(const void *arg); | 171 | void togglebar(const void *arg); |
| 172 | void togglefloating(const void *arg); | 172 | void togglefloating(const void *arg); |
| @@ -296,7 +296,8 @@ attachstack(Client *c) { | |||
| 296 | 296 | ||
| 297 | void | 297 | void |
| 298 | buttonpress(XEvent *e) { | 298 | buttonpress(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 | ||
| 1309 | void | 1310 | void |
| 1310 | setup(void) { | 1311 | setup(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 | ||
| 1416 | uint | 1418 | int |
| 1417 | textnw(const char *text, uint len) { | 1419 | textnw(const char *text, uint len) { |
| 1418 | XRectangle r; | 1420 | XRectangle r; |
| 1419 | 1421 | ||
