X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=067f383666b460f366eee558f48e2c589e655633;hb=6c5dc7017cff322b6402b3849c07529f5ab916fe;hp=c080adae930e99bd37c6f59cf60eddc95ca80dbc;hpb=1d4a24dae02cfb3a3241c3d293e96dba910317bd;p=dwm.git diff --git a/main.c b/main.c index c080ada..067f383 100644 --- a/main.c +++ b/main.c @@ -101,6 +101,7 @@ 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++) { @@ -133,8 +134,7 @@ setup(void) { sh = DisplayHeight(dpy, screen); master = MASTER; nmaster = NMASTER; - snprintf(mtext, sizeof mtext, arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, nmaster); - bmw = textw(mtext); + updatemodetext(); /* bar */ bx = sx; by = sy;