about summary refs log tree commit diff stats
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-14 22:54:09 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-14 22:54:09 +0200
commitc0705eeb65733e8c5091e47d5bdc701a0779a949 (patch)
tree0a33e58c24419ff6e12f5401e3bfd65c1e90dfa3 /main.c
parent29355bd38284ed9aec8d3ffabde61db73947c9f9 (diff)
downloaddwm-c0705eeb65733e8c5091e47d5bdc701a0779a949.tar.gz
sanitized names
Diffstat (limited to 'main.c')
-rw-r--r--main.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/main.c b/main.c
index 5c0ef0d..a1cf245 100644
--- a/main.c
+++ b/main.c
@@ -46,7 +46,7 @@ Client *sel = NULL;
 static Bool other_wm_running;
 static const char version[] =
 	"dwm-" VERSION ", (C)opyright MMVI Anselm R. Garbe\n";
-static int (*x_error_handler) (Display *, XErrorEvent *);
+static int (*x_xerror) (Display *, XErrorEvent *);
 
 static void
 usage() {	error("usage: dwm [-v]\n"); }
@@ -94,7 +94,7 @@ win_property(Window w, Atom a, Atom t, long l, unsigned char **prop)
 }
 
 int
-win_proto(Window w)
+proto(Window w)
 {
 	unsigned char *protocols;
 	long res;
@@ -114,7 +114,7 @@ win_proto(Window w)
 }
 
 void
-send_message(Window w, Atom a, long value)
+sendevent(Window w, Atom a, long value)
 {
 	XEvent e;
 
@@ -135,7 +135,7 @@ send_message(Window w, Atom a, long value)
  * calls exit().
  */
 int
-error_handler(Display *dpy, XErrorEvent *error)
+xerror(Display *dpy, XErrorEvent *error)
 {
 	if(error->error_code == BadWindow
 			|| (error->request_code == X_SetInputFocus
@@ -153,7 +153,7 @@ error_handler(Display *dpy, XErrorEvent *error)
 		return 0;
 	fprintf(stderr, "dwm: fatal error: request code=%d, error code=%d\n",
 			error->request_code, error->error_code);
-	return x_error_handler(dpy, error); /* may call exit() */
+	return x_xerror(dpy, error); /* may call exit() */
 }
 
 /*
@@ -161,7 +161,7 @@ error_handler(Display *dpy, XErrorEvent *error)
  * is already running.
  */
 static int
-startup_error_handler(Display *dpy, XErrorEvent *error)
+startup_xerror(Display *dpy, XErrorEvent *error)
 {
 	other_wm_running = True;
 	return -1;
@@ -215,7 +215,7 @@ main(int argc, char *argv[])
 
 	/* check if another WM is already running */
 	other_wm_running = False;
-	XSetErrorHandler(startup_error_handler);
+	XSetErrorHandler(startup_xerror);
 	/* this causes an error if some other WM is running */
 	XSelectInput(dpy, root, SubstructureRedirectMask);
 	XFlush(dpy);
@@ -224,7 +224,7 @@ main(int argc, char *argv[])
 		error("dwm: another window manager is already running\n");
 
 	XSetErrorHandler(0);
-	x_error_handler = XSetErrorHandler(error_handler);
+	x_xerror = XSetErrorHandler(xerror);
 
 	/* init atoms */
 	wm_atom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
@@ -242,10 +242,10 @@ main(int argc, char *argv[])
 	grabkeys();
 
 	/* style */
-	dc.bg = initcolor(BGCOLOR);
-	dc.fg = initcolor(FGCOLOR);
-	dc.border = initcolor(BORDERCOLOR);
-	initfont(FONT);
+	dc.bg = getcolor(BGCOLOR);
+	dc.fg = getcolor(FGCOLOR);
+	dc.border = getcolor(BORDERCOLOR);
+	setfont(FONT);
 
 	sx = sy = 0;
 	sw = DisplayWidth(dpy, screen);
@@ -267,7 +267,7 @@ main(int argc, char *argv[])
 
 	dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));
 	dc.gc = XCreateGC(dpy, root, 0, 0);
-	draw_bar();
+	drawstatus();
 
 	issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
 
@@ -315,7 +315,7 @@ Mainloop:
 					stext[n++] = i;
 				}
 				stext[n] = 0;
-				draw_bar();
+				drawstatus();
 			}
 		}
 	}
s E. Dickey <dickey@invisible-island.net> 1998-11-18 19:45:34 -0500 snapshot of project "lynx", label v2-8-2dev_4' href='/ingrix/lynx-snapshots/commit/src/UCdomap.h?id=6d7ee0488b037f002a9fec0d060cc9842d5f8acd'>6d7ee048 ^
e4409c40 ^
e4409c40 ^
1d80538b ^

0654c702 ^

1d80538b ^






6d7ee048 ^
e4409c40 ^
e4409c40 ^
1d80538b ^
f6e997b7 ^
e4409c40 ^


f7c3c4ca ^





2b52e9e6 ^
f7c3c4ca ^











ab1d1ae5 ^
2b52e9e6 ^








ab1d1ae5 ^

2b52e9e6 ^










ab1d1ae5 ^

2b52e9e6 ^










ab1d1ae5 ^

2b52e9e6 ^










ab1d1ae5 ^

2b52e9e6 ^










ab1d1ae5 ^

2b52e9e6 ^



f7c3c4ca ^


2b52e9e6 ^







ab1d1ae5 ^

2b52e9e6 ^
327b7c16 ^
2b52e9e6 ^








ab1d1ae5 ^

2b52e9e6 ^
f7c3c4ca ^

57bfc74f ^
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178