[Xcb-commit] icccm
Julien Danjou
jdanjou at kemper.freedesktop.org
Thu Jun 25 07:48:14 PDT 2009
icccm/icccm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 12b991f6b76f981c7f92f30413a4aea9c125b8e4
Author: Julien Danjou <julien at danjou.info>
Date: Thu Jun 25 16:48:00 2009 +0200
icccm: fix atoms_len with new libxcb
Signed-off-by: Julien Danjou <julien at danjou.info>
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;
More information about the xcb-commit
mailing list