shmlog: remote atom when disabled
This commit is contained in:
parent
1facb450c0
commit
02b237b14d
10
src/x.c
10
src/x.c
|
@ -1227,9 +1227,13 @@ void x_set_name(Con *con, const char *name) {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void update_shmlog_atom() {
|
void update_shmlog_atom() {
|
||||||
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root,
|
if (*shmlogname == '\0') {
|
||||||
A_I3_SHMLOG_PATH, A_UTF8_STRING, 8,
|
xcb_delete_property(conn, root, A_I3_SHMLOG_PATH);
|
||||||
strlen(shmlogname), shmlogname);
|
} else {
|
||||||
|
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root,
|
||||||
|
A_I3_SHMLOG_PATH, A_UTF8_STRING, 8,
|
||||||
|
strlen(shmlogname), shmlogname);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue