summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-25 17:49:15 +0000
committerDana Jansens <danakj@orodu.net>2007-05-25 17:49:15 +0000
commit5d5156dcb3a18a271880b16f951d83bfda0fed03 (patch)
treed512c1803a7ba0b0962adf72988f497d418aa08f /openbox
parent1f71a0db724902df37f349738379e93c8b8ca34c (diff)
dont use empty desktop names from the rc file
Diffstat (limited to 'openbox')
-rw-r--r--openbox/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 6a64c025..08b2d740 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -938,7 +938,7 @@ void screen_update_desktop_names()
it = g_slist_nth(config_desktops_names, i);
for (; i < screen_num_desktops; ++i) {
- if (it)
+ if (it && ((char*)it->data)[0]) /* not empty */
/* use the names from the config file when possible */
screen_desktop_names[i] = g_strdup(it->data);
else