coordinates_t trg = {m, d, n};
if ((loc.node == NULL || n == loc.node) &&
(sel == NULL || node_matches(&trg, &ref, *sel))) {
- fprintf(rsp, "0x%07X\n", n->id);
+ fprintf(rsp, "0x%X\n", n->id);
}
query_node_ids_in(n->first_child, d, m, loc, sel, rsp);
query_node_ids_in(n->second_child, d, m, loc, sel, rsp);
void render_text(xcb_connection_t *dpy, xcb_window_t win, int16_t x, int16_t y)
{
- char id[8];
+ char id[10];
xcb_void_cookie_t ck;
- snprintf(id, sizeof(id), "%07x", win);
+ snprintf(id, sizeof(id), "0x%X", win);
xcb_gcontext_t gc = get_font_gc(dpy, win, "-*-fixed-medium-*-*-*-18-*-*-*-*-*-*-*");
/* Don't work with the _checked ! */
ck = xcb_image_text_8_checked(dpy, strlen(id), win, gc, x, y, id);