Skip to content

Commit

Permalink
Merge pull request #749 from beatwise/xcbwin-title
Browse files Browse the repository at this point in the history
sets xcb window's title, fixes #738
  • Loading branch information
riri authored Nov 30, 2024
2 parents 225edd3 + 4c1272f commit 2d3a10b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions demo/xcb_cairo/nuklear_xcb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 2d3a10b

Please sign in to comment.