99 extern Window root, barwin; |
99 extern Window root, barwin; |
100 |
100 |
101 /* client.c */ |
101 /* client.c */ |
102 extern void configure(Client *c); /* send synthetic configure event */ |
102 extern void configure(Client *c); /* send synthetic configure event */ |
103 extern void focus(Client *c); /* focus c, c may be NULL */ |
103 extern void focus(Client *c); /* focus c, c may be NULL */ |
104 extern Bool isprotodel(Client *c); /* returns True if c->win supports wmatom[WMDelete] */ |
|
105 extern void killclient(Arg *arg); /* kill c nicely */ |
104 extern void killclient(Arg *arg); /* kill c nicely */ |
106 extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
105 extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
107 extern void resize(Client *c, int x, int y, |
106 extern void resize(Client *c, int x, int y, |
108 int w, int h, Bool sizehints); /* resize c*/ |
107 int w, int h, Bool sizehints); /* resize c*/ |
109 extern void updatesizehints(Client *c); /* update the size hint variables of c */ |
108 extern void updatesizehints(Client *c); /* update the size hint variables of c */ |
123 /* main.c */ |
122 /* main.c */ |
124 extern void quit(Arg *arg); /* quit dwm nicely */ |
123 extern void quit(Arg *arg); /* quit dwm nicely */ |
125 extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ |
124 extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ |
126 extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
125 extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
127 |
126 |
128 /* tag.c */ |
127 /* manage.c */ |
|
128 extern void attach(Client *c); /* attaches c to global client list */ |
|
129 extern void attachstack(Client *c); /* attaches client to stack */ |
129 extern void compileregexps(void); /* initialize regexps of rules defined in config.h */ |
130 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 */ |
|
134 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 */ |
|
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 */ |
|
141 extern void restack(void); /* restores z layers of all clients */ |
130 extern void settags(Client *c, Client *trans); /* sets tags of c */ |
142 extern void settags(Client *c, Client *trans); /* sets tags of c */ |
131 extern void tag(Arg *arg); /* tags c with arg's index */ |
143 extern void tag(Arg *arg); /* tags c with arg's index */ |
|
144 extern void togglefloat(Arg *arg); /* toggles focusesd client between floating/non-floating state */ |
|
145 extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |
132 extern void toggletag(Arg *arg); /* toggles c tags with arg's index */ |
146 extern void toggletag(Arg *arg); /* toggles c tags with arg's index */ |
133 |
147 extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ |
134 /* tile.c */ |
148 extern void view(Arg *arg); /* views the tag with arg's index */ |
135 extern void dotile(void); /* arranges all windows tiled */ |
|
136 extern void incnmaster(Arg *arg); /* increments nmaster with arg's index value */ |
|
137 extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */ |
|
138 extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */ |
149 extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */ |
139 |
150 |
140 /* util.c */ |
151 /* util.c */ |
141 extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ |
152 extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ |
142 extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ |
153 extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ |
143 extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */ |
154 extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */ |
144 |
|
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 */ |
|
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 */ |
|
151 extern void focusnext(Arg *arg); /* focuses next 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 */ |
|
155 extern Client *nextmanaged(Client *c); /* returns managed successor of c */ |
|
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 */ |
|
158 extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |
|
159 extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ |
|
160 extern void view(Arg *arg); /* views the tag with arg's index */ |
|