diff --git a/client.c b/client.c index 5e80704f3..67f413381 100644 --- a/client.c +++ b/client.c @@ -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;