我正在编写一个用于在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类型还是其他类型?
WM_SIZE_HINTS
是什么/包含什么的文档吗? - Etan Reisner