client: fix has_proto iteration with newer XCB
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2b68f6df5e
commit
9c785c40f6
4
client.c
4
client.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue