X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6..bba044de4f055e4a5b6605c221bded849b8bd53e:/main.c?ds=sidebyside diff --git a/main.c b/main.c index 33a2a9a..9ea09bf 100644 --- a/main.c +++ b/main.c @@ -85,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; @@ -210,6 +211,8 @@ main(int argc, char *argv[]) grabkeys(); + for(ntags = 0; tags[ntags]; ntags++); + /* style */ dc.bg = getcolor(BGCOLOR); dc.fg = getcolor(FGCOLOR);