97 extern DC dc; /* global draw context */ |
97 extern DC dc; /* global draw context */ |
98 extern Display *dpy; |
98 extern Display *dpy; |
99 extern Window root, barwin; |
99 extern Window root, barwin; |
100 |
100 |
101 /* client.c */ |
101 /* client.c */ |
102 extern void attach(Client *c); /* attaches c to global client list */ |
|
103 extern void attachstack(Client *c); /* attaches client to stack */ |
|
104 extern void configure(Client *c); /* send synthetic configure event */ |
102 extern void configure(Client *c); /* send synthetic configure event */ |
105 extern void detach(Client *c); /* detaches c from global client list */ |
|
106 extern void detachstack(Client *c); /* detaches client from stack */ |
|
107 extern void focus(Client *c); /* focus c, c may be NULL */ |
103 extern void focus(Client *c); /* focus c, c may be NULL */ |
108 extern Client *getclient(Window w); /* return client of w */ |
|
109 extern Bool isprotodel(Client *c); /* returns True if c->win supports wmatom[WMDelete] */ |
104 extern Bool isprotodel(Client *c); /* returns True if c->win supports wmatom[WMDelete] */ |
110 extern void killclient(Arg *arg); /* kill c nicely */ |
105 extern void killclient(Arg *arg); /* kill c nicely */ |
111 extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
106 extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
112 extern void resize(Client *c, int x, int y, |
107 extern void resize(Client *c, int x, int y, |
113 int w, int h, Bool sizehints); /* resize c*/ |
108 int w, int h, Bool sizehints); /* resize c*/ |
146 extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ |
141 extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ |
147 extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ |
142 extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ |
148 extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */ |
143 extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */ |
149 |
144 |
150 /* view.c */ |
145 /* view.c */ |
|
146 extern void attach(Client *c); /* attaches c to global client list */ |
|
147 extern void attachstack(Client *c); /* attaches client to stack */ |
151 extern void dofloat(void); /* arranges all windows floating */ |
148 extern void dofloat(void); /* arranges all windows floating */ |
|
149 extern void detach(Client *c); /* detaches c from global client list */ |
|
150 extern void detachstack(Client *c); /* detaches client from stack */ |
152 extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ |
151 extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ |
153 extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
152 extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
|
153 extern Client *getclient(Window w); /* return client of w */ |
154 extern Bool isvisible(Client *c); /* returns True if client is visible */ |
154 extern Bool isvisible(Client *c); /* returns True if client is visible */ |
155 extern Client *nextmanaged(Client *c); /* returns managed successor of c */ |
155 extern Client *nextmanaged(Client *c); /* returns managed successor of c */ |
156 extern void restack(void); /* restores z layers of all clients */ |
156 extern void restack(void); /* restores z layers of all clients */ |
157 extern void togglefloat(Arg *arg); /* toggles focusesd client between floating/non-floating state */ |
157 extern void togglefloat(Arg *arg); /* toggles focusesd client between floating/non-floating state */ |
158 extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |
158 extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |