about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-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 {
 } Regs;
 
 /* functions */
-static void eprint(const char *errstr, ...);
-static void *emallocz(unsigned int size);
-static void spawn(const char *arg);
-static void drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]);
-static unsigned long initcolor(const char *colstr);
-static void initfont(const char *fontstr);
-static Bool isoccupied(unsigned int t);
-static unsigned int textnw(const char *text, unsigned int len);
-static void drawtext(const char *text, unsigned long col[ColLast]);
-static void drawbar(void);
-static void initstyle(void);
-static void initbar(void);
-static unsigned int textw(const char *text);
-static void togglebar(const char *arg);
-static void updatebarpos(void);
+
+static void applyrules(Client *c);
+static void arrange(void);
+static void attach(Client *c);
 static void attachstack(Client *c);
-static void detachstack(Client *c);
-static void grabbuttons(Client *c, Bool focused);
-static Bool isprotodel(Client *c);
-static void setclientstate(Client *c, long state);
-static int xerrordummy(Display *dsply, XErrorEvent *ee);
 static void ban(Client *c);
-static void configure(Client *c);
-static void killclient(const char *arg);
-static void manage(Window w, XWindowAttributes *wa);
-static void resize(Client *c, int x, int y, int w, int h, Bool sizehints);
-static void unban(Client *c);
-static void unmanage(Client *c);
-static void updatesizehints(Client *c);
-static void updatetitle(Client *c);
-static Client *getclient(Window w);
-static void movemouse(Client *c);
-static void resizemouse(Client *c);
 static void buttonpress(XEvent *e);
-static void configurerequest(XEvent *e);
+static void cleanup(void);
+static void compileregs(void);
+static void configure(Client *c);
 static void configurenotify(XEvent *e);
+static void configurerequest(XEvent *e);
 static void destroynotify(XEvent *e);
+static void detach(Client *c);
+static void detachstack(Client *c);
+static void drawbar(void);
+static void drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]);
+static void drawtext(const char *text, unsigned long col[ColLast]);
+static void *emallocz(unsigned int size);
 static void enternotify(XEvent *e);
+static void eprint(const char *errstr, ...);
 static void expose(XEvent *e);
-static void keypress(XEvent *e);
-static void leavenotify(XEvent *e);
-static void mappingnotify(XEvent *e);
-static void maprequest(XEvent *e);
-static void propertynotify(XEvent *e);
-static void unmapnotify(XEvent *e);
-static unsigned int idxoftag(const char *tag);
 static void floating(void); /* default floating layout */
-static void applyrules(Client *c);
-static void compileregs(void);
+static void focus(Client *c);
 static void focusnext(const char *arg);
 static void focusprev(const char *arg);
+static Client *getclient(Window w);
+static long getstate(Window w);
+static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
+static void grabbuttons(Client *c, Bool focused);
+static unsigned int idxoftag(const char *tag);
+static void initbar(void);
+static unsigned long initcolor(const char *colstr);
+static void initfont(const char *fontstr);
 static void initlayouts(void);
+static void initstyle(void);
+static Bool isarrange(void (*func)());
 static Bool isfloating(void);
+static Bool isoccupied(unsigned int t);
+static Bool isprotodel(Client *c);
 static Bool isvisible(Client *c);
+static void keypress(XEvent *e);
+static void killclient(const char *arg);
+static void leavenotify(XEvent *e);
+static void manage(Window w, XWindowAttributes *wa);
+static void mappingnotify(XEvent *e);
+static void maprequest(XEvent *e);
+static void movemouse(Client *c);
+static Client *nexttiled(Client *c);
+static void propertynotify(XEvent *e);
+static void quit(const char *arg);
+static void resize(Client *c, int x, int y, int w, int h, Bool sizehints);
+static void resizemouse(Client *c);
 static void restack(void);
+static void scan(void);
+static void setclientstate(Client *c, long state);
 static void setlayout(const char *arg);
+static void setmwfact(const char *arg);
+static void setup(void);
+static void spawn(const char *arg);
 static void tag(const char *arg);
+static unsigned int textnw(const char *text, unsigned int len);
+static unsigned int textw(const char *text);
+static void tile(void);
+static void togglebar(const char *arg);
 static void togglefloating(const char *arg);
 static void togglemax(const char *arg);
 static void toggletag(const char *arg);
 static void toggleview(const char *arg);
+static void unban(Client *c);
+static void unmanage(Client *c);
+static void unmapnotify(XEvent *e);
+static void updatebarpos(void);
+static void updatesizehints(Client *c);
+static void updatetitle(Client *c);
 static void view(const char *arg);
-static void cleanup(void);
-static long getstate(Window w);
-static void scan(void);
-static void setup(void);
-static int xerrorstart(Display *dsply, XErrorEvent *ee);
-static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
-static void quit(const char *arg);
 static int xerror(Display *dpy, XErrorEvent *ee);
-static void arrange(void);
-static void attach(Client *c);
-static void detach(Client *c);
-static void focus(Client *c);
-static Bool isarrange(void (*func)());
-static Client *nexttiled(Client *c);
-static void setmwfact(const char *arg);
-static void tile(void);
+static int xerrordummy(Display *dsply, XErrorEvent *ee);
+static int xerrorstart(Display *dsply, XErrorEvent *ee);
 static void zoom(const char *arg);
 
 #include "config.h"
E. Dickey <dickey@invisible-island.net> 2000-01-07 03:20:24 -0500 committer Thomas E. Dickey <dickey@invisible-island.net> 2000-01-07 03:20:24 -0500 snapshot of project "lynx", label v2-8-3dev_18' href='/ingrix/lynx-snapshots/commit/WWW/Library/Implementation/HTMLDTD.h?id=d61bc4e56055c372ab0b8d027f376c2f4a2ecfff'>d61bc4e5 ^
b223937f ^
d326f24d ^





b223937f ^
1fc1d8af ^
e087f6d4
1fc1d8af ^
945e8eb6 ^
1fc1d8af ^

1d80538b ^
e087f6d4





4b034492 ^
e087f6d4
4b034492 ^
e087f6d4
4b034492 ^
e087f6d4

4b034492 ^
e087f6d4
1fc1d8af ^

d326f24d ^
1fc1d8af ^



2d161b7d ^
e087f6d4





4b034492 ^
e087f6d4
4b034492 ^
e087f6d4
4b034492 ^
e087f6d4

4b034492 ^
e087f6d4
1fc1d8af ^

e087f6d4
1fc1d8af ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97