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 */ |
102 extern void configure(Client *c); /* send synthetic configure event */ |
104 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 */ |
103 extern void focus(Client *c); /* focus c, c may be NULL */ |
107 extern void focus(Client *c); /* focus c, c may be NULL */ |
|
108 extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ |
|
109 extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
|
110 extern Client *getclient(Window w); /* return client of w */ |
104 extern void killclient(Arg *arg); /* kill c nicely */ |
111 extern void killclient(Arg *arg); /* kill c nicely */ |
105 extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
112 extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
106 extern void resize(Client *c, int x, int y, |
113 extern void resize(Client *c, int x, int y, |
107 int w, int h, Bool sizehints); /* resize c*/ |
114 int w, int h, Bool sizehints); /* resize c*/ |
108 extern void updatesizehints(Client *c); /* update the size hint variables of c */ |
115 extern void updatesizehints(Client *c); /* update the size hint variables of c */ |
123 extern void quit(Arg *arg); /* quit dwm nicely */ |
130 extern void quit(Arg *arg); /* quit dwm nicely */ |
124 extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ |
131 extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ |
125 extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
132 extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
126 |
133 |
127 /* manage.c */ |
134 /* manage.c */ |
128 extern void attach(Client *c); /* attaches c to global client list */ |
|
129 extern void attachstack(Client *c); /* attaches client to stack */ |
|
130 extern void compileregexps(void); /* initialize regexps of rules defined in config.h */ |
135 extern void compileregexps(void); /* initialize regexps of rules defined in config.h */ |
131 extern void detach(Client *c); /* detaches c from global client list */ |
|
132 extern void detachstack(Client *c); /* detaches client from stack */ |
|
133 extern void dofloat(void); /* arranges all windows floating */ |
136 extern void dofloat(void); /* arranges all windows floating */ |
134 extern void dotile(void); /* arranges all windows tiled */ |
137 extern void dotile(void); /* arranges all windows tiled */ |
135 extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ |
|
136 extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
|
137 extern Client *getclient(Window w); /* return client of w */ |
|
138 extern void incnmaster(Arg *arg); /* increments nmaster with arg's index value */ |
138 extern void incnmaster(Arg *arg); /* increments nmaster with arg's index value */ |
139 extern Bool isvisible(Client *c); /* returns True if client is visible */ |
139 extern Bool isvisible(Client *c); /* returns True if client is visible */ |
140 extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */ |
140 extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */ |
141 extern void restack(void); /* restores z layers of all clients */ |
141 extern void restack(void); /* restores z layers of all clients */ |
142 extern void settags(Client *c, Client *trans); /* sets tags of c */ |
142 extern void settags(Client *c, Client *trans); /* sets tags of c */ |