xcb: use predefined XCB_ATOM_ atoms, don’t request them

This commit is contained in:
Michael Stapelberg
2011-08-17 01:41:19 +02:00
parent c8e6de1382
commit 7951445849
8 changed files with 27 additions and 26 deletions

View File

@ -518,7 +518,7 @@ void x_push_node(Con *con) {
DLOG("pushing name %s for con %p\n", state->name, con);
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, con->frame,
A_WM_NAME, A_STRING, 8, strlen(state->name), state->name);
XCB_ATOM_WM_NAME, XCB_ATOM_STRING, 8, strlen(state->name), state->name);
FREE(state->name);
}