X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=633966b0963354fb58c6652aee1bf950c190ae69;hb=e21d93b7bd5d34f31bc09a576b7d449df5b68c07;hp=f09307b66ef115e1400177e0531a171374732eee;hpb=080a38d62d18be2ab98f66ed190d3d9e3463fec9;p=dwm.git diff --git a/main.c b/main.c index f09307b..633966b 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,6 @@ */ #include "dwm.h" - #include #include #include @@ -15,7 +14,6 @@ #include #include - /* static */ static int (*xerrorxlib)(Display *, XErrorEvent *); @@ -87,6 +85,7 @@ xerrorstart(Display *dsply, XErrorEvent *ee) char stext[1024]; int tsel = DEFTAG; int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; +unsigned int ntags; Atom wmatom[WMLast], netatom[NetLast]; Bool running = True; Bool issel = True; @@ -211,6 +210,9 @@ main(int argc, char *argv[]) cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); grabkeys(); + initrregs(); + + for(ntags = 0; tags[ntags]; ntags++); /* style */ dc.bg = getcolor(BGCOLOR);