X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=9ea09bff66f6787ae91b06c24655bf472af4e06d;hb=0dfe729f90069de070495c82ddc72cc476a4f3ab;hp=0e94e2c1d0a9c38b84cd5b7ba757829d83f59531;hpb=a73a88280681acdab047bd11a9ba77d97d6a0b72;p=dwm.git diff --git a/main.c b/main.c index 0e94e2c..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 *); @@ -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; @@ -111,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; @@ -212,6 +211,8 @@ main(int argc, char *argv[]) grabkeys(); + for(ntags = 0; tags[ntags]; ntags++); + /* style */ dc.bg = getcolor(BGCOLOR); dc.fg = getcolor(FGCOLOR);