From: Michael Stapelberg Date: Thu, 25 Mar 2010 18:08:37 +0000 (+0100) Subject: Fix rendering of workspace names after "reload" (Thanks fallen) X-Git-Tag: 3.e~6^2~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6699d546404b36729968dbd3fa7020d5f93b0967;p=i3%2Fi3 Fix rendering of workspace names after "reload" (Thanks fallen) --- diff --git a/src/commands.c b/src/commands.c index b601c1c0..2d8155f2 100644 --- a/src/commands.c +++ b/src/commands.c @@ -1042,6 +1042,9 @@ void parse_command(xcb_connection_t *conn, const char *command) { /* Is it a ? */ if (STARTS_WITH(command, "reload")) { load_configuration(conn, NULL, true); + render_layout(conn); + /* Send an IPC event just in case the ws names have changed */ + ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"reload\"}"); return; } diff --git a/src/config.c b/src/config.c index f42583fa..d89af991 100644 --- a/src/config.c +++ b/src/config.c @@ -3,7 +3,7 @@ * * i3 - an improved dynamic tiling window manager * - * © 2009 Michael Stapelberg and contributors + * © 2009-2010 Michael Stapelberg and contributors * * See file LICENSE for license information. * @@ -320,6 +320,11 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath, TAILQ_REMOVE(&assignments, assign, assignments); FREE(assign); } + + /* Clear workspace names */ + Workspace *ws; + TAILQ_FOREACH(ws, workspaces, workspaces) + workspace_set_name(ws, NULL); } SLIST_INIT(&modes);