From 12b991f6b76f981c7f92f30413a4aea9c125b8e4 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 25 Jun 2009 16:48:00 +0200 Subject: icccm: fix atoms_len with new libxcb Signed-off-by: Julien Danjou --- icccm/icccm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3