]> Dogcows Code - chaz/tint2/blobdiff - src/config.c
cleanup code
[chaz/tint2] / src / config.c
index 37a30eff74d31dc2228d5e45356eaf44996d8568..04ec056173607730db02dafcf57b9b5becf27500 100644 (file)
@@ -451,13 +451,14 @@ void add_entry (char *key, char *value)
                int id = atoi (value);
                id = (id < backgrounds->len && id >= 0) ? id : 0;
                panel_config.g_taskbar.bg = &g_array_index(backgrounds, Background, id);
+               if (panel_config.g_taskbar.bg_active == 0)
+                       panel_config.g_taskbar.bg_active = panel_config.g_taskbar.bg;
                panel_config.g_taskbar.area.bg = panel_config.g_taskbar.bg;
        }
        else if (strcmp (key, "taskbar_active_background_id") == 0) {
                int id = atoi (value);
                id = (id < backgrounds->len && id >= 0) ? id : 0;
                panel_config.g_taskbar.bg_active = &g_array_index(backgrounds, Background, id);
-               panel_config.g_taskbar.use_active = 1;
        }
 
        /* Task */
This page took 0.01601 seconds and 4 git commands to generate.