]> git.sur5r.net Git - i3/i3/commitdiff
Fix rendering of workspace names after "reload" (Thanks fallen)
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 25 Mar 2010 18:08:37 +0000 (19:08 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 25 Mar 2010 18:08:37 +0000 (19:08 +0100)
src/commands.c
src/config.c

index b601c1c035a96af2d37a2e01043bcf42e3a0a0c3..2d8155f276a162494db56b6ce416566875b2861a 100644 (file)
@@ -1042,6 +1042,9 @@ void parse_command(xcb_connection_t *conn, const char *command) {
         /* Is it a <reload>? */
         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;
         }
 
index f42583fa150102d35a5f14669ec31c544eaa7c51..d89af991ed510eeec48bf168f8c3f6e73f6a815c 100644 (file)
@@ -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);