Revert "client: fix has_proto iteration with newer XCB"
This reverts commit 9c785c40f6
.
This commit is contained in:
parent
8f1ccca881
commit
be1abfa28f
2
client.c
2
client.c
|
@ -291,7 +291,7 @@ client_unfocus(client_t *c)
|
||||||
bool
|
bool
|
||||||
client_hasproto(client_t *c, xcb_atom_t atom)
|
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)
|
if(c->protocols.atoms[i] == atom)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue