Skip to content

Commit

Permalink
sets xcb window's title
Browse files Browse the repository at this point in the history
  • Loading branch information
beatwise committed Nov 30, 2024
1 parent 225edd3 commit 4c1272f
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 4c1272f

Please sign in to comment.