Fix rendering of workspace names after "reload" (Thanks fallen)

This commit is contained in:
Michael Stapelberg 2010-03-25 19:08:37 +01:00
parent 469f22caeb
commit 6699d54640
2 changed files with 9 additions and 1 deletions

View File

@ -1042,6 +1042,9 @@ void parse_command(xcb_connection_t *conn, const char *command) {
/* Is it a <reload>? */ /* Is it a <reload>? */
if (STARTS_WITH(command, "reload")) { if (STARTS_WITH(command, "reload")) {
load_configuration(conn, NULL, true); 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; return;
} }

View File

@ -3,7 +3,7 @@
* *
* i3 - an improved dynamic tiling window manager * i3 - an improved dynamic tiling window manager
* *
* © 2009 Michael Stapelberg and contributors * © 2009-2010 Michael Stapelberg and contributors
* *
* See file LICENSE for license information. * 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); TAILQ_REMOVE(&assignments, assign, assignments);
FREE(assign); FREE(assign);
} }
/* Clear workspace names */
Workspace *ws;
TAILQ_FOREACH(ws, workspaces, workspaces)
workspace_set_name(ws, NULL);
} }
SLIST_INIT(&modes); SLIST_INIT(&modes);