about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-06-06 11:17:56 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-06-06 11:17:56 +0200
commit4bf3b019535da3aa14cfccebd65ea726cbd15862 (patch)
treebfbb9877a5eb386f3d7e8870aa97edf7bbc00cab
parentff957d1eaca73800e59f640351dce35e3ab67f9e (diff)
downloaddwm-4bf3b019535da3aa14cfccebd65ea726cbd15862.tar.gz
I change the style of init somewhat, init as early as possible.
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 471cfc2..d72f13d 100644
--- a/main.c
+++ b/main.c
@@ -16,7 +16,9 @@
 
 char stext[256];
 int screen, sx, sy, sw, sh, wax, way, waw, wah;
-unsigned int bh, bpos, ntags, numlockmask;
+unsigned int bh, ntags;
+unsigned int bpos = BARPOS;
+unsigned int numlockmask = 0;
 Atom wmatom[WMLast], netatom[NetLast];
 Bool *seltag;
 Bool selscreen = True;
@@ -149,7 +151,6 @@ setup(void) {
 	cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
 	cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur);
 	/* init modifier map */
-	numlockmask = 0;
 	modmap = XGetModifierMapping(dpy);
 	for (i = 0; i < 8; i++)
 		for (j = 0; j < modmap->max_keypermod; j++) {
@@ -191,7 +192,6 @@ setup(void) {
 			DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen),
 			CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
 	XDefineCursor(dpy, barwin, cursor[CurNormal]);
-	bpos = BARPOS;
 	updatebarpos();
 	XMapRaised(dpy, barwin);
 	strcpy(stext, "dwm-"VERSION);
le='Blame the previous revision' href='/akkartik/mu/blame/subx_bare.md?h=main&id=ac8b37f9a8fd653e25425b5a77a7457b9cc05547'>^
01013f2a ^










e2e0f5cc ^
01013f2a ^


e2e0f5cc ^
01013f2a ^


e2e0f5cc ^
01013f2a ^



e2e0f5cc ^
01013f2a ^









16f2bd11 ^
01013f2a ^


























3b81d748 ^


01013f2a ^






3b81d748 ^

01013f2a ^





9a524793 ^



3b81d748 ^

9a524793 ^
7817fdb2 ^

3b81d748 ^






dff67029 ^
7817fdb2 ^

3b81d748 ^
7817fdb2 ^





16f2bd11 ^

7817fdb2 ^



9a524793 ^


7817fdb2 ^
16f2bd11 ^
3b81d748 ^
7817fdb2 ^


9a524793 ^



2c64c52e ^
9a524793 ^


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