mirror of
https://github.com/Immediate-Mode-UI/Nuklear.git
synced 2026-11-30 16:48:10 +01:00
sets xcb window's title
This commit is contained in:
@@ -195,6 +195,15 @@ NK_API struct nk_xcb_context *nk_xcb_init(const char *title, int pos_x, int pos_
|
||||
pos_x, pos_y, width, height, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT,
|
||||
XCB_COPY_FROM_PARENT, XCB_CW_EVENT_MASK, values);
|
||||
|
||||
xcb_change_property(conn,
|
||||
XCB_PROP_MODE_REPLACE,
|
||||
window,
|
||||
XCB_ATOM_WM_NAME,
|
||||
XCB_ATOM_STRING,
|
||||
8,
|
||||
strlen(title),
|
||||
title);
|
||||
|
||||
cookie = xcb_intern_atom(conn, 1, 12, "WM_PROTOCOLS");
|
||||
reply = xcb_intern_atom_reply(conn, cookie, 0);
|
||||
cookie = xcb_intern_atom(conn, 0, 16, "WM_DELETE_WINDOW");
|
||||
|
||||
Reference in New Issue
Block a user