From 3c6d4f7663a45542fd82136275bb2209d26ea9f9 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 4 Mar 2009 09:02:49 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20put=20the=20client=E2=80=99s=20X?= =?utf8?q?11=20ID=20into=20the=20titlebar?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/layout.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"); -- 2.39.5