summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-09-15 22:45:18 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-09-15 22:45:18 +0200
commita6df995b5d4efabc243d6f564db356fc406c6601 (patch)
treef201aba6bf52324333e67744a743d30586a53158 /dwm.c
parentbackporting my intro-comment of old dwm.h (diff)
downloaddwm-a6df995b5d4efabc243d6f564db356fc406c6601.tar.gz
dwm-a6df995b5d4efabc243d6f564db356fc406c6601.zip
ordered function forward definitions
Diffstat (limited to '')
-rw-r--r--dwm.c113
1 files changed, 57 insertions, 56 deletions
diff --git a/dwm.c b/dwm.c
index 7d2a0de..2597f4f 100644
--- a/dwm.c
+++ b/dwm.c
@@ -113,84 +113,85 @@ typedef struct {
113} Regs; 113} Regs;
114 114
115/* functions */ 115/* functions */
116static void eprint(const char *errstr, ...); 116
117static void *emallocz(unsigned int size); 117static void applyrules(Client *c);
118static void spawn(const char *arg); 118static void arrange(void);
119static void drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]); 119static void attach(Client *c);
120static unsigned long initcolor(const char *colstr);
121static void initfont(const char *fontstr);
122static Bool isoccupied(unsigned int t);
123static unsigned int textnw(const char *text, unsigned int len);
124static void drawtext(const char *text, unsigned long col[ColLast]);
125static void drawbar(void);
126static void initstyle(void);
127static void initbar(void);
128static unsigned int textw(const char *text);
129static void togglebar(const char *arg);
130static void updatebarpos(void);
131static void attachstack(Client *c); 120static void attachstack(Client *c);
132static void detachstack(Client *c);
133static void grabbuttons(Client *c, Bool focused);
134static Bool isprotodel(Client *c);
135static void setclientstate(Client *c, long state);
136static int xerrordummy(Display *dsply, XErrorEvent *ee);
137static void ban(Client *c); 121static void ban(Client *c);
138static void configure(Client *c);
139static void killclient(const char *arg);
140static void manage(Window w, XWindowAttributes *wa);
141static void resize(Client *c, int x, int y, int w, int h, Bool sizehints);
142static void unban(Client *c);
143static void unmanage(Client *c);
144static void updatesizehints(Client *c);
145static void updatetitle(Client *c);
146static Client *getclient(Window w);
147static void movemouse(Client *c);
148static void resizemouse(Client *c);
149static void buttonpress(XEvent *e); 122static void buttonpress(XEvent *e);
150static void configurerequest(XEvent *e); 123static void cleanup(void);
124static void compileregs(void);
125static void configure(Client *c);
151static void configurenotify(XEvent *e); 126static void configurenotify(XEvent *e);
127static void configurerequest(XEvent *e);
152static void destroynotify(XEvent *e); 128static void destroynotify(XEvent *e);
129static void detach(Client *c);
130static void detachstack(Client *c);
131static void drawbar(void);
132static void drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]);
133static void drawtext(const char *text, unsigned long col[ColLast]);
134static void *emallocz(unsigned int size);
153static void enternotify(XEvent *e); 135static void enternotify(XEvent *e);
136static void eprint(const char *errstr, ...);
154static void expose(XEvent *e); 137static void expose(XEvent *e);
155static void keypress(XEvent *e);
156static void leavenotify(XEvent *e);
157static void mappingnotify(XEvent *e);
158static void maprequest(XEvent *e);
159static void propertynotify(XEvent *e);
160static void unmapnotify(XEvent *e);
161static unsigned int idxoftag(const char *tag);
162static void floating(void); /* default floating layout */ 138static void floating(void); /* default floating layout */
163static void applyrules(Client *c); 139static void focus(Client *c);
164static void compileregs(void);
165static void focusnext(const char *arg); 140static void focusnext(const char *arg);
166static void focusprev(const char *arg); 141static void focusprev(const char *arg);
142static Client *getclient(Window w);
143static long getstate(Window w);
144static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
145static void grabbuttons(Client *c, Bool focused);
146static unsigned int idxoftag(const char *tag);
147static void initbar(void);
148static unsigned long initcolor(const char *colstr);
149static void initfont(const char *fontstr);
167static void initlayouts(void); 150static void initlayouts(void);
151static void initstyle(void);
152static Bool isarrange(void (*func)());
168static Bool isfloating(void); 153static Bool isfloating(void);
154static Bool isoccupied(unsigned int t);
155static Bool isprotodel(Client *c);
169static Bool isvisible(Client *c); 156static Bool isvisible(Client *c);
157static void keypress(XEvent *e);
158static void killclient(const char *arg);
159static void leavenotify(XEvent *e);
160static void manage(Window w, XWindowAttributes *wa);
161static void mappingnotify(XEvent *e);
162static void maprequest(XEvent *e);
163static void movemouse(Client *c);
164static Client *nexttiled(Client *c);
165static void propertynotify(XEvent *e);
166static void quit(const char *arg);
167static void resize(Client *c, int x, int y, int w, int h, Bool sizehints);
168static void resizemouse(Client *c);
170static void restack(void); 169static void restack(void);
170static void scan(void);
171static void setclientstate(Client *c, long state);
171static void setlayout(const char *arg); 172static void setlayout(const char *arg);
173static void setmwfact(const char *arg);
174static void setup(void);
175static void spawn(const char *arg);
172static void tag(const char *arg); 176static void tag(const char *arg);
177static unsigned int textnw(const char *text, unsigned int len);
178static unsigned int textw(const char *text);
179static void tile(void);
180static void togglebar(const char *arg);
173static void togglefloating(const char *arg); 181static void togglefloating(const char *arg);
174static void togglemax(const char *arg); 182static void togglemax(const char *arg);
175static void toggletag(const char *arg); 183static void toggletag(const char *arg);
176static void toggleview(const char *arg); 184static void toggleview(const char *arg);
185static void unban(Client *c);
186static void unmanage(Client *c);
187static void unmapnotify(XEvent *e);
188static void updatebarpos(void);
189static void updatesizehints(Client *c);
190static void updatetitle(Client *c);
177static void view(const char *arg); 191static void view(const char *arg);
178static void cleanup(void);
179static long getstate(Window w);
180static void scan(void);
181static void setup(void);
182static int xerrorstart(Display *dsply, XErrorEvent *ee);
183static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
184static void quit(const char *arg);
185static int xerror(Display *dpy, XErrorEvent *ee); 192static int xerror(Display *dpy, XErrorEvent *ee);
186static void arrange(void); 193static int xerrordummy(Display *dsply, XErrorEvent *ee);
187static void attach(Client *c); 194static int xerrorstart(Display *dsply, XErrorEvent *ee);
188static void detach(Client *c);
189static void focus(Client *c);
190static Bool isarrange(void (*func)());
191static Client *nexttiled(Client *c);
192static void setmwfact(const char *arg);
193static void tile(void);
194static void zoom(const char *arg); 195static void zoom(const char *arg);
195 196
196#include "config.h" 197#include "config.h"