Skip to content

Commit 4c1272f

Browse files
author
beatwise
committed
sets xcb window's title
1 parent 225edd3 commit 4c1272f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

demo/xcb_cairo/nuklear_xcb.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,15 @@ NK_API struct nk_xcb_context *nk_xcb_init(const char *title, int pos_x, int pos_
195195
pos_x, pos_y, width, height, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT,
196196
XCB_COPY_FROM_PARENT, XCB_CW_EVENT_MASK, values);
197197

198+
xcb_change_property(conn,
199+
XCB_PROP_MODE_REPLACE,
200+
window,
201+
XCB_ATOM_WM_NAME,
202+
XCB_ATOM_STRING,
203+
8,
204+
strlen(title),
205+
title);
206+
198207
cookie = xcb_intern_atom(conn, 1, 12, "WM_PROTOCOLS");
199208
reply = xcb_intern_atom_reply(conn, cookie, 0);
200209
cookie = xcb_intern_atom(conn, 0, 16, "WM_DELETE_WINDOW");

0 commit comments

Comments
 (0)