summaryrefslogtreecommitdiffstats
path: root/wm.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wm.c b/wm.c
index 02b9a68..ed40a8b 100644
--- a/wm.c
+++ b/wm.c
@@ -95,13 +95,12 @@ win_property(Window w, Atom a, Atom t, long l, unsigned char **prop)
95int 95int
96win_proto(Window w) 96win_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 }