equal
deleted
inserted
replaced
151 void keypress(XEvent *e); |
151 void keypress(XEvent *e); |
152 void killclient(const char *arg); |
152 void killclient(const char *arg); |
153 void manage(Window w, XWindowAttributes *wa); |
153 void manage(Window w, XWindowAttributes *wa); |
154 void mappingnotify(XEvent *e); |
154 void mappingnotify(XEvent *e); |
155 void maprequest(XEvent *e); |
155 void maprequest(XEvent *e); |
|
156 void monocle(void); |
156 void movemouse(Client *c); |
157 void movemouse(Client *c); |
157 Client *nexttiled(Client *c); |
158 Client *nexttiled(Client *c); |
158 void propertynotify(XEvent *e); |
159 void propertynotify(XEvent *e); |
159 void quit(const char *arg); |
160 void quit(const char *arg); |
160 void reapply(const char *arg); |
161 void reapply(const char *arg); |
1070 if(!getclient(ev->window)) |
1071 if(!getclient(ev->window)) |
1071 manage(ev->window, &wa); |
1072 manage(ev->window, &wa); |
1072 } |
1073 } |
1073 |
1074 |
1074 void |
1075 void |
|
1076 monocle(void) { |
|
1077 Client *c; |
|
1078 |
|
1079 domwfact = dozoom = False; |
|
1080 for(c = clients; c; c = c->next) |
|
1081 if(isvisible(c)) |
|
1082 resize(c, wax, way, waw - 2 * c->border, wah - 2 * c->border, RESIZEHINTS); |
|
1083 } |
|
1084 |
|
1085 void |
1075 movemouse(Client *c) { |
1086 movemouse(Client *c) { |
1076 int x1, y1, ocx, ocy, di, nx, ny; |
1087 int x1, y1, ocx, ocy, di, nx, ny; |
1077 unsigned int dui; |
1088 unsigned int dui; |
1078 Window dummy; |
1089 Window dummy; |
1079 XEvent ev; |
1090 XEvent ev; |
1410 if(lt == &layouts[LENGTH(layouts)]) |
1421 if(lt == &layouts[LENGTH(layouts)]) |
1411 lt = &layouts[0]; |
1422 lt = &layouts[0]; |
1412 } |
1423 } |
1413 else { |
1424 else { |
1414 for(i = 0; i < LENGTH(layouts); i++) |
1425 for(i = 0; i < LENGTH(layouts); i++) |
1415 if(arg == layouts[i].symbol) |
1426 if(!strcmp(arg, layouts[i].symbol)) |
1416 break; |
1427 break; |
1417 if(i == LENGTH(layouts)) |
1428 if(i == LENGTH(layouts)) |
1418 return; |
1429 return; |
1419 lt = &layouts[i]; |
1430 lt = &layouts[i]; |
1420 } |
1431 } |