mirror of
https://github.com/vale981/bspwm
synced 2025-03-04 17:31:39 -05:00
Fix ID format in test window
This commit is contained in:
parent
3e60b44c29
commit
e1b5f77ef1
1 changed files with 2 additions and 2 deletions
|
@ -46,9 +46,9 @@ xcb_gc_t get_font_gc(xcb_connection_t *dpy, xcb_window_t win, const char *font_n
|
|||
|
||||
void render_text(xcb_connection_t *dpy, xcb_window_t win, int16_t x, int16_t y)
|
||||
{
|
||||
char id[10];
|
||||
char id[11];
|
||||
xcb_void_cookie_t ck;
|
||||
snprintf(id, sizeof(id), "0x%X", win);
|
||||
snprintf(id, sizeof(id), "0x%08X", win);
|
||||
xcb_gcontext_t gc = get_font_gc(dpy, win, "-*-fixed-medium-*-*-*-18-*-*-*-*-*-*-*");
|
||||
/* Doesn't work without _checked */
|
||||
ck = xcb_image_text_8_checked(dpy, strlen(id), win, gc, x, y, id);
|
||||
|
|
Loading…
Add table
Reference in a new issue