226void QXcbAtom::initializeAllAtoms(xcb_connection_t *connection) {
227 const char *name = xcb_atomnames;
230 xcb_intern_atom_cookie_t cookies[QXcbAtom::NAtoms];
232 while ((name_len = strlen(name)) != 0) {
233 cookies[i] = xcb_intern_atom(connection,
false, name_len, name);
235 name += name_len + 1;
238 Q_ASSERT(i == QXcbAtom::NAtoms);
240 for (i = 0; i < QXcbAtom::NAtoms; ++i) {
241 xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(connection, cookies[i],
nullptr);
243 m_allAtoms[i] = reply->atom;