tI change the style of init somewhat, init as early as possible. - dwm - [fork]… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 4bf3b019535da3aa14cfccebd65ea726cbd15862 | |
parent ff957d1eaca73800e59f640351dce35e3ab67f9e | |
Author: Anselm R. Garbe <[email protected]> | |
Date: Wed, 6 Jun 2007 11:17:56 +0200 | |
I change the style of init somewhat, init as early as possible. | |
Diffstat: | |
M main.c | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/main.c b/main.c | |
t@@ -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; | |
t@@ -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++) { | |
t@@ -191,7 +192,6 @@ setup(void) { | |
DefaultDepth(dpy, screen), CopyFromParent, DefaultVisu… | |
CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); | |
XDefineCursor(dpy, barwin, cursor[CurNormal]); | |
- bpos = BARPOS; | |
updatebarpos(); | |
XMapRaised(dpy, barwin); | |
strcpy(stext, "dwm-"VERSION); |