mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
atom: remove an unnecessary use of get_atom
Replace get_atom("COMPTON_VERSION") with a fixed atom. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
0dcca2228e
commit
071b77c49f
2 changed files with 5 additions and 5 deletions
|
@ -23,6 +23,7 @@
|
|||
WM_CLIENT_MACHINE, \
|
||||
_NET_ACTIVE_WINDOW, \
|
||||
_COMPTON_SHADOW, \
|
||||
COMPTON_VERSION, \
|
||||
_NET_WM_WINDOW_TYPE, \
|
||||
_XROOTPMAP_ID, \
|
||||
ESETROOT_PMAP_ID, \
|
||||
|
|
|
@ -1327,10 +1327,9 @@ static int register_cm(session_t *ps) {
|
|||
}
|
||||
|
||||
// Set COMPTON_VERSION
|
||||
e = xcb_request_check(
|
||||
ps->c.c, xcb_change_property_checked(
|
||||
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,
|
||||
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.");
|
||||
|
|
Loading…
Reference in a new issue