summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2009-06-25 16:48:00 +0200
committerJulien Danjou <julien@danjou.info>2009-06-25 16:48:00 +0200
commit12b991f6b76f981c7f92f30413a4aea9c125b8e4 (patch)
tree838edaae7963f9a4e2e926bf63aef2c8a38ce86d
parentf68336d94fdb8f2f4758cc0fd4c0fc7e9e667e1e (diff)
icccm: fix atoms_len with new libxcb
Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r--icccm/icccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/icccm/icccm.c b/icccm/icccm.c
index 9d13334..7cc341a 100644
--- a/icccm/icccm.c
+++ b/icccm/icccm.c
@@ -708,7 +708,7 @@ xcb_get_wm_protocols_reply(xcb_connection_t *c,
}
protocols->_reply = reply;
- protocols->atoms_len = xcb_get_property_value_length(protocols->_reply);
+ protocols->atoms_len = xcb_get_property_value_length(protocols->_reply) / (reply->format / 8);
protocols->atoms = (xcb_atom_t *) xcb_get_property_value(protocols->_reply);
return 1;