X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=9ea09bff66f6787ae91b06c24655bf472af4e06d;hb=0dfe729f90069de070495c82ddc72cc476a4f3ab;hp=dffa4bafebc4430df0da7d7ae90301d1b577e249;hpb=0464e42231199d7a6ea45e46cf7798f2b6cf972c;p=dwm.git diff --git a/main.c b/main.c index dffa4ba..9ea09bf 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 *); @@ -85,10 +83,9 @@ xerrorstart(Display *dsply, XErrorEvent *ee) /* extern */ char stext[1024]; -/* CUSTOMIZE */ -int tsel = Tdev; /* default tag */ -/* END CUSTOMIZE */ +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; @@ -113,7 +110,7 @@ getproto(Window w) } for(i = 0; i < res; i++) { if(protocols[i] == wmatom[WMDelete]) - protos |= WM_PROTOCOL_DELWIN; + protos |= PROTODELWIN; } free((char *) protocols); return protos; @@ -214,6 +211,8 @@ main(int argc, char *argv[]) grabkeys(); + for(ntags = 0; tags[ntags]; ntags++); + /* style */ dc.bg = getcolor(BGCOLOR); dc.fg = getcolor(FGCOLOR);