diff --git a/src/atom.h b/src/atom.h index f984e665..29374d94 100644 --- a/src/atom.h +++ b/src/atom.h @@ -23,6 +23,7 @@ WM_CLIENT_MACHINE, \ _NET_ACTIVE_WINDOW, \ _COMPTON_SHADOW, \ + COMPTON_VERSION, \ _NET_WM_WINDOW_TYPE, \ _XROOTPMAP_ID, \ ESETROOT_PMAP_ID, \ diff --git a/src/picom.c b/src/picom.c index c024dd4e..dc075c13 100644 --- a/src/picom.c +++ b/src/picom.c @@ -1327,11 +1327,10 @@ static int register_cm(session_t *ps) { } // Set COMPTON_VERSION - e = xcb_request_check( - ps->c.c, xcb_change_property_checked( - ps->c.c, XCB_PROP_MODE_REPLACE, ps->reg_win, - get_atom(ps->atoms, "COMPTON_VERSION"), XCB_ATOM_STRING, 8, - (uint32_t)strlen(PICOM_VERSION), PICOM_VERSION)); + e = xcb_request_check(ps->c.c, xcb_change_property_checked( + ps->c.c, XCB_PROP_MODE_REPLACE, ps->reg_win, + ps->atoms->aCOMPTON_VERSION, XCB_ATOM_STRING, 8, + (uint32_t)strlen(PICOM_VERSION), PICOM_VERSION)); if (e) { log_error_x_error(e, "Failed to set COMPTON_VERSION."); free(e);