From: Michael Stapelberg Date: Wed, 4 Mar 2009 08:02:49 +0000 (+0100) Subject: Don’t put the client’s X11 ID into the titlebar X-Git-Tag: 3.a~116 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c6d4f7663a45542fd82136275bb2209d26ea9f9;p=i3%2Fi3 Don’t put the client’s X11 ID into the titlebar --- diff --git a/src/layout.c b/src/layout.c index 6596e657..8b3f6e98 100644 --- a/src/layout.c +++ b/src/layout.c @@ -95,7 +95,6 @@ void redecorate_window(xcb_connection_t *conn, Client *client) { } else decorate_window(conn, client, client->frame, client->titlegc, 0); } - /* * (Re-)draws window decorations for a given Client onto the given drawable/graphic context. * When in stacking mode, the window decorations are drawn onto an own window. @@ -150,7 +149,7 @@ void decorate_window(xcb_connection_t *conn, Client *client, xcb_drawable_t draw /* TODO: utf8? */ char *label; - asprintf(&label, "(%08x) %.*s", client->frame, client->name_len, client->name); + asprintf(&label, "%.*s", client->name_len, client->name); xcb_void_cookie_t text_cookie = xcb_image_text_8_checked(conn, strlen(label), drawable, gc, 3 /* X */, offset + font->height /* Y = baseline of font */, label); check_error(conn, text_cookie, "Could not draw client's title");