client: fix has_proto iteration with newer XCB

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-21 22:41:13 +02:00
parent 2b68f6df5e
commit 9c785c40f6
1 changed files with 1 additions and 3 deletions

View File

@ -292,9 +292,7 @@ client_unfocus(client_t *c)
bool
client_hasproto(client_t *c, xcb_atom_t atom)
{
uint32_t i;
for(i = 0; i < c->protocols.atoms_len; i++)
for(uint32_t i = 0; i < c->protocols.atoms_len / sizeof(xcb_atom_t) ; i++)
if(c->protocols.atoms[i] == atom)
return true;
return false;