equal
deleted
inserted
replaced
149 void keypress(XEvent *e); |
149 void keypress(XEvent *e); |
150 void killclient(const char *arg); |
150 void killclient(const char *arg); |
151 void manage(Window w, XWindowAttributes *wa); |
151 void manage(Window w, XWindowAttributes *wa); |
152 void mappingnotify(XEvent *e); |
152 void mappingnotify(XEvent *e); |
153 void maprequest(XEvent *e); |
153 void maprequest(XEvent *e); |
154 void monocle(void); |
|
155 void movemouse(Client *c); |
154 void movemouse(Client *c); |
156 Client *nextunfloating(Client *c); |
155 Client *nextunfloating(Client *c); |
157 void propertynotify(XEvent *e); |
156 void propertynotify(XEvent *e); |
158 void quit(const char *arg); |
157 void quit(const char *arg); |
159 void resize(Client *c, int x, int y, int w, int h, Bool sizehints); |
158 void resize(Client *c, int x, int y, int w, int h, Bool sizehints); |
1011 if(!getclient(ev->window)) |
1010 if(!getclient(ev->window)) |
1012 manage(ev->window, &wa); |
1011 manage(ev->window, &wa); |
1013 } |
1012 } |
1014 |
1013 |
1015 void |
1014 void |
1016 monocle(void) { |
|
1017 Client *c; |
|
1018 |
|
1019 for(c = clients; c; c = c->next) |
|
1020 if(!c->isfloating && isvisible(c)) |
|
1021 resize(c, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw, RESIZEHINTS); |
|
1022 } |
|
1023 |
|
1024 void |
|
1025 movemouse(Client *c) { |
1015 movemouse(Client *c) { |
1026 int x1, y1, ocx, ocy, di, nx, ny; |
1016 int x1, y1, ocx, ocy, di, nx, ny; |
1027 unsigned int dui; |
1017 unsigned int dui; |
1028 Window dummy; |
1018 Window dummy; |
1029 XEvent ev; |
1019 XEvent ev; |