From be1abfa28f49f9cadf7188fbf4eac4c66111d0c8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 24 Aug 2009 10:48:18 +0200 Subject: [PATCH] Revert "client: fix has_proto iteration with newer XCB" This reverts commit 9c785c40f6305582e6af65599744b1e050c8012e. --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 5e80704f..67f41338 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;