X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=main.c;h=da95d95f080716815c081ba150559b8928d1ebd9;hb=28ffff801bb0137ec3fe4093afc4fb29784b17ec;hp=97fdbaf7d912f84c2776028847f9970ff26d6631;hpb=44ef3f5a07753ecaeacc2fb180e90bf4479ab975;p=dwm.git diff --git a/main.c b/main.c index 97fdbaf..da95d95 100644 --- a/main.c +++ b/main.c @@ -172,24 +172,6 @@ xerrorstart(Display *dsply, XErrorEvent *ee) { /* extern */ -int -getproto(Window w) { - int i, format, protos, status; - unsigned long extra, res; - Atom *protocols, real; - - protos = 0; - status = XGetWindowProperty(dpy, w, wmatom[WMProtocols], 0L, 20L, False, - XA_ATOM, &real, &format, &res, &extra, (unsigned char **)&protocols); - if(status != Success || protocols == 0) - return protos; - for(i = 0; i < res; i++) - if(protocols[i] == wmatom[WMDelete]) - protos |= PROTODELWIN; - free(protocols); - return protos; -} - void sendevent(Window w, Atom a, long value) { XEvent e;