applied nsz' textnw patch thank you
0840c136
1 file(s) · +6 −4
| 166 | 166 | void setup(void); |
|
| 167 | 167 | void spawn(const void *arg); |
|
| 168 | 168 | void tag(const void *arg); |
|
| 169 | - | uint textnw(const char *text, uint len); |
|
| 169 | + | int textnw(const char *text, uint len); |
|
| 170 | 170 | void tile(void); |
|
| 171 | 171 | void togglebar(const void *arg); |
|
| 172 | 172 | void togglefloating(const void *arg); |
|
| 296 | 296 | ||
| 297 | 297 | void |
|
| 298 | 298 | buttonpress(XEvent *e) { |
|
| 299 | - | uint i, x, mask; |
|
| 299 | + | uint i, mask; |
|
| 300 | + | int x; |
|
| 300 | 301 | Client *c; |
|
| 301 | 302 | XButtonPressedEvent *ev = &e->xbutton; |
|
| 302 | 303 | ||
| 1308 | 1309 | ||
| 1309 | 1310 | void |
|
| 1310 | 1311 | setup(void) { |
|
| 1311 | - | uint i, w; |
|
| 1312 | + | uint i; |
|
| 1313 | + | int w; |
|
| 1312 | 1314 | XSetWindowAttributes wa; |
|
| 1313 | 1315 | ||
| 1314 | 1316 | /* init screen */ |
|
| 1413 | 1415 | } |
|
| 1414 | 1416 | } |
|
| 1415 | 1417 | ||
| 1416 | - | uint |
|
| 1418 | + | int |
|
| 1417 | 1419 | textnw(const char *text, uint len) { |
|
| 1418 | 1420 | XRectangle r; |
|
| 1419 | 1421 | ||