equal
deleted
inserted
replaced
164 void setclientstate(Client *c, long state); |
164 void setclientstate(Client *c, long state); |
165 void setmfact(const void *arg); |
165 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); |
173 void togglelayout(const void *arg); |
173 void togglelayout(const void *arg); |
174 void togglemax(const void *arg); |
174 void togglemax(const void *arg); |
294 stack = c; |
294 stack = c; |
295 } |
295 } |
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 |
303 if(ev->window == barwin) { |
304 if(ev->window == barwin) { |
304 x = 0; |
305 x = 0; |
1306 arrange(); |
1307 arrange(); |
1307 } |
1308 } |
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 */ |
1315 screen = DefaultScreen(dpy); |
1317 screen = DefaultScreen(dpy); |
1316 root = RootWindow(dpy, screen); |
1318 root = RootWindow(dpy, screen); |
1411 sel->tags = *(int *)arg & TAGMASK; |
1413 sel->tags = *(int *)arg & TAGMASK; |
1412 arrange(); |
1414 arrange(); |
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 |
1420 if(dc.font.set) { |
1422 if(dc.font.set) { |
1421 XmbTextExtents(dc.font.set, text, len, NULL, &r); |
1423 XmbTextExtents(dc.font.set, text, len, NULL, &r); |