X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/a5cb80b86cdedb8cd1f3a02de47f204bd174f649..9ed5de00b686ab872caab8525c6845892a1a1ac1:/main.c 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;