feat(backend): 写入 _NET_SUPPORTED 属性声明 EWMH 支持能力

This commit is contained in:
2026-06-16 23:33:05 +08:00
parent 00df685184
commit 9f9adf7e2e
2 changed files with 32 additions and 13 deletions

View File

@@ -60,6 +60,21 @@ static void atoms_init(backend_t *backend) {
*atom->atom = reply->atom;
p_delete(&reply);
}
#define EWMH_ITEM(name) atoms->name,
xcb_atom_t ewmh_supported_atoms[] = {EWMH_ATOMS(EWMH_ITEM)};
#undef EWMH_ITEM
auto root = backend->screen->root;
xcb_change_property(
conn,
XCB_PROP_MODE_REPLACE,
root,
atoms->_NET_SUPPORTED,
XCB_ATOM_ATOM,
32,
countof(ewmh_supported_atoms),
ewmh_supported_atoms
);
}
static void create_wm_check_window(backend_t *backend) {