我正在为 xcb 中的窗口创建编写一个简约的库。我希望能够创建一个不可调整大小的窗口。我发现,可以通过以下方式向窗口管理器提供提示:
xcb_void_cookie_t xcb_change_property (xcb_connection_t *c, /* Connection to the X server */
uint8_t mode, /* Property mode */
xcb_window_t window, /* Window */
xcb_atom_t property, /* Property to change */
xcb_atom_t type, /* Type of the property */
uint8_t format, /* Format of the property (8, 16, 32) */
uint32_t data_len, /* Length of the data parameter */
const void *data); /* Data */
我试图用这个函数改变 WM_NORMAL_HINTS 和 WM_SIZE_HINTS,但是我怎么知道我必须在 *data 参数中放入什么数据?是 XCB_ATOM_INTEGER 类型还是其他类型?