main.c
changeset 317 45af6a8a0cbf
parent 316 d69cdb180a3e
child 326 73efaa15a635
equal deleted inserted replaced
316:d69cdb180a3e 317:45af6a8a0cbf
    61 	if(wins)
    61 	if(wins)
    62 		XFree(wins);
    62 		XFree(wins);
    63 }
    63 }
    64 
    64 
    65 static int
    65 static int
    66 win_property(Window w, Atom a, Atom t, long l, unsigned char **prop)
    66 winprop(Window w, Atom a, Atom t, long l, unsigned char **prop)
    67 {
    67 {
    68 	int status, format;
    68 	int status, format;
    69 	unsigned long res, extra;
    69 	unsigned long res, extra;
    70 	Atom real;
    70 	Atom real;
    71 
    71 
   114 	int protos = 0;
   114 	int protos = 0;
   115 	int i;
   115 	int i;
   116 	long res;
   116 	long res;
   117 	Atom *protocols;
   117 	Atom *protocols;
   118 
   118 
   119 	res = win_property(w, wmatom[WMProtocols], XA_ATOM, 20L,
   119 	res = winprop(w, wmatom[WMProtocols], XA_ATOM, 20L,
   120 			((unsigned char **)&protocols));
   120 			((unsigned char **)&protocols));
   121 	if(res <= 0) {
   121 	if(res <= 0) {
   122 		return protos;
   122 		return protos;
   123 	}
   123 	}
   124 	for(i = 0; i < res; i++) {
   124 	for(i = 0; i < res; i++) {