From: Michael Stapelberg Date: Sun, 15 Dec 2013 10:32:36 +0000 (+0100) Subject: set original window title on placeholder windows X-Git-Tag: 4.8~189 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=639a1b182ca698176b64d6c9a602ca961de65a81;p=i3%2Fi3 set original window title on placeholder windows --- diff --git a/src/restore_layout.c b/src/restore_layout.c index e52f1567..1a7dfaf8 100644 --- a/src/restore_layout.c +++ b/src/restore_layout.c @@ -172,7 +172,11 @@ static void open_placeholder_window(Con *con) { root_screen->white_pixel, XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_STRUCTURE_NOTIFY, }); - // TODO: set window title from con->name + /* Set the same name as was stored in the layout file. While perhaps + * slightly confusing in the first instant, this brings additional + * clarity to which placeholder is waiting for which actual window. */ + xcb_change_property(restore_conn, XCB_PROP_MODE_REPLACE, placeholder, + A__NET_WM_NAME, A_UTF8_STRING, 8, strlen(con->name), con->name); DLOG("Created placeholder window 0x%08x for leaf container %p / %s\n", placeholder, con, con->name);