summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-19 14:44:05 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-19 14:44:05 +0100
commit4cdbd523e5f02f7cf392dda8690f95ce6eaff9dd (patch)
tree57f5e5322fafedd526fc2b3f46804729bfdcc865 /dwm.h
parentsome more refactoring (diff)
downloaddwm-4cdbd523e5f02f7cf392dda8690f95ce6eaff9dd.tar.gz
dwm-4cdbd523e5f02f7cf392dda8690f95ce6eaff9dd.zip
merged tag.c, view.c and tile.c to manage.c
Diffstat (limited to '')
-rw-r--r--dwm.h36
1 files changed, 15 insertions, 21 deletions
diff --git a/dwm.h b/dwm.h
index 4a820b0..318ce9e 100644
--- a/dwm.h
+++ b/dwm.h
@@ -101,7 +101,6 @@ extern Window root, barwin;
101/* client.c */ 101/* client.c */
102extern void configure(Client *c); /* send synthetic configure event */ 102extern void configure(Client *c); /* send synthetic configure event */
103extern void focus(Client *c); /* focus c, c may be NULL */ 103extern void focus(Client *c); /* focus c, c may be NULL */
104extern Bool isprotodel(Client *c); /* returns True if c->win supports wmatom[WMDelete] */
105extern void killclient(Arg *arg); /* kill c nicely */ 104extern void killclient(Arg *arg); /* kill c nicely */
106extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ 105extern void manage(Window w, XWindowAttributes *wa); /* manage new client */
107extern void resize(Client *c, int x, int y, 106extern void resize(Client *c, int x, int y,
@@ -125,36 +124,31 @@ extern void quit(Arg *arg); /* quit dwm nicely */
125extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ 124extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */
126extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ 125extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
127 126
128/* tag.c */ 127/* manage.c */
129extern void compileregexps(void); /* initialize regexps of rules defined in config.h */
130extern void settags(Client *c, Client *trans); /* sets tags of c */
131extern void tag(Arg *arg); /* tags c with arg's index */
132extern void toggletag(Arg *arg); /* toggles c tags with arg's index */
133
134/* tile.c */
135extern void dotile(void); /* arranges all windows tiled */
136extern void incnmaster(Arg *arg); /* increments nmaster with arg's index value */
137extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */
138extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */
139
140/* util.c */
141extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */
142extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */
143extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */
144
145/* view.c */
146extern void attach(Client *c); /* attaches c to global client list */ 128extern void attach(Client *c); /* attaches c to global client list */
147extern void attachstack(Client *c); /* attaches client to stack */ 129extern void attachstack(Client *c); /* attaches client to stack */
148extern void dofloat(void); /* arranges all windows floating */ 130extern void compileregexps(void); /* initialize regexps of rules defined in config.h */
149extern void detach(Client *c); /* detaches c from global client list */ 131extern void detach(Client *c); /* detaches c from global client list */
150extern void detachstack(Client *c); /* detaches client from stack */ 132extern void detachstack(Client *c); /* detaches client from stack */
133extern void dofloat(void); /* arranges all windows floating */
134extern void dotile(void); /* arranges all windows tiled */
151extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ 135extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */
152extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ 136extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */
153extern Client *getclient(Window w); /* return client of w */ 137extern Client *getclient(Window w); /* return client of w */
138extern void incnmaster(Arg *arg); /* increments nmaster with arg's index value */
154extern Bool isvisible(Client *c); /* returns True if client is visible */ 139extern Bool isvisible(Client *c); /* returns True if client is visible */
155extern Client *nextmanaged(Client *c); /* returns managed successor of c */ 140extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */
156extern void restack(void); /* restores z layers of all clients */ 141extern void restack(void); /* restores z layers of all clients */
142extern void settags(Client *c, Client *trans); /* sets tags of c */
143extern void tag(Arg *arg); /* tags c with arg's index */
157extern void togglefloat(Arg *arg); /* toggles focusesd client between floating/non-floating state */ 144extern void togglefloat(Arg *arg); /* toggles focusesd client between floating/non-floating state */
158extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ 145extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */
146extern void toggletag(Arg *arg); /* toggles c tags with arg's index */
159extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ 147extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */
160extern void view(Arg *arg); /* views the tag with arg's index */ 148extern void view(Arg *arg); /* views the tag with arg's index */
149extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */
150
151/* util.c */
152extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */
153extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */
154extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */