]> Dogcows Code - chaz/tint2/blobdiff - src/config.c
added taskbar_active_background_id to change current desktop background
[chaz/tint2] / src / config.c
index a7d11a28645354ad66019e0c5b6f809ff33fa1bc..fce3ff98ea1cbb7fd1521049f4639ee6bb514308 100644 (file)
@@ -85,6 +85,7 @@ void init_config()
 
        panel_config = calloc(1, sizeof(Panel));
        systray.sort = 1;
+
        // window manager's menu default value == false
        wm_menu = 0;
        max_tick_urgent = 7;
@@ -476,6 +477,13 @@ void add_entry (char *key, char *value)
       memcpy(&panel_config->g_taskbar.pix.back, &a->pix.back, sizeof(Color));
       memcpy(&panel_config->g_taskbar.pix.border, &a->pix.border, sizeof(Border));
    }
+   else if (strcmp (key, "taskbar_active_background_id") == 0) {
+      int id = atoi (value);
+      Area *a = g_slist_nth_data(list_back, id);
+      memcpy(&panel_config->g_taskbar.pix_active.back, &a->pix.back, sizeof(Color));
+      memcpy(&panel_config->g_taskbar.pix_active.border, &a->pix.border, sizeof(Border));
+               panel_config->g_taskbar.use_active = 1;
+   }
 
    /* Task */
    else if (strcmp (key, "task_text") == 0)
This page took 0.019706 seconds and 4 git commands to generate.