xcb_change_property(3) | XCB Requests | xcb_change_property(3) |
xcb_change_property - Changes a window property
#include <xcb/xproto.h>
xcb_void_cookie_t
xcb_change_property(xcb_connection_t *conn,
uint8_t mode, xcb_window_t window,
xcb_atom_t property, xcb_atom_t type,
uint8_t format, uint32_t data_len, const
void *data);
Sets or updates a property on the specified window. Properties are for example the window title (WM_NAME) or its minimum size (WM_NORMAL_HINTS). Protocols such as EWMH also use properties - for example EWMH defines the window title, encoded as UTF-8 string, in the _NET_WM_NAME property.
Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the event loop.
If you want to handle errors directly with xcb_request_check instead, use xcb_change_property_checked. See xcb-requests(3) for details.
/*
* Sets the WM_NAME property of the window to "XCB Example".
*
*/ void my_example(xcb_connection_t *conn, xcb_window_t window) {
xcb_change_property(conn,
XCB_PROP_MODE_REPLACE,
window,
XCB_ATOM_WM_NAME,
XCB_ATOM_STRING,
8,
strlen("XCB Example"),
"XCB Example");
xcb_flush(conn); }
xcb-requests(3), xcb-examples(3), xcb_intern_atom(3), xprop(1)
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
libxcb 1.13.1 | X Version 11 |