Mercurial > dwm-meillo
comparison wm.c @ 30:2e0fb4130bfb
new stuff, fixed several issues
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Wed, 12 Jul 2006 17:50:31 +0200 |
parents | f96fb3fd8203 |
children | 386649deb651 |
comparison
equal
deleted
inserted
replaced
29:8ad86d0a6a53 | 30:2e0fb4130bfb |
---|---|
93 } | 93 } |
94 | 94 |
95 int | 95 int |
96 win_proto(Window w) | 96 win_proto(Window w) |
97 { | 97 { |
98 Atom *protocols; | 98 unsigned char *protocols; |
99 long res; | 99 long res; |
100 int protos = 0; | 100 int protos = 0; |
101 int i; | 101 int i; |
102 | 102 |
103 res = win_property(w, wm_atom[WMProtocols], XA_ATOM, 20L, | 103 res = win_property(w, wm_atom[WMProtocols], XA_ATOM, 20L, &protocols); |
104 ((unsigned char **) &protocols)); | |
105 if(res <= 0) { | 104 if(res <= 0) { |
106 return protos; | 105 return protos; |
107 } | 106 } |
108 for(i = 0; i < res; i++) { | 107 for(i = 0; i < res; i++) { |
109 if(protocols[i] == wm_atom[WMDelete]) | 108 if(protocols[i] == wm_atom[WMDelete]) |