From d089adc2298e707fe58517954816915aea5cccb7 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 29 Aug 2009 11:06:34 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20display=20unnamed=20wo?= =?utf8?q?rkspaces=20with=20%d:=20(Thanks=20Mirko)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index bc7edeab..615ee3f5 100644 --- a/src/config.c +++ b/src/config.c @@ -377,7 +377,6 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath, workspaces[ws_num - 1].preferred_screen = screen; name += strlen("screen ") + strlen(screen); - } /* Strip leading whitespace */ @@ -393,7 +392,8 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath, LOG("setting name to \"%s\"\n", name); - workspace_set_name(&(workspaces[ws_num - 1]), name); + if (*name != '\0') + workspace_set_name(&(workspaces[ws_num - 1]), name); free(ws_str); continue; } -- 2.39.5