Revert "client: fix has_proto iteration with newer XCB"

This reverts commit 9c785c40f6.
This commit is contained in:
Julien Danjou 2009-08-24 10:48:18 +02:00
parent 8f1ccca881
commit be1abfa28f
1 changed files with 1 additions and 1 deletions

View File

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