]> Dogcows Code - chaz/openbox/commitdiff
dont use empty desktop names from the rc file
authorDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 17:49:15 +0000 (17:49 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 17:49:15 +0000 (17:49 +0000)
openbox/screen.c

index 6a64c025e09941542dbf4ecdef27e5ecd937fb79..08b2d74036dc663f625d3b77be2eb2f8004df586 100644 (file)
@@ -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
This page took 0.026543 seconds and 4 git commands to generate.