]> Dogcows Code - chaz/tint2/blobdiff - src/taskbar/taskbar.c
tint2conf : cleanup
[chaz/tint2] / src / taskbar / taskbar.c
index a883523e124a004a3de0af00f82f97a8e1480721..02c5c8eeefbce5b814544ad10058a3507396734b 100644 (file)
@@ -64,7 +64,7 @@ void init_taskbar()
                        panel->g_taskbar.area.bg = panel->g_taskbar.bg;
                }
                if (panel->g_taskbar.bg_active == 0)
-                       panel->g_taskbar.bg_active = &g_array_index(backgrounds, Background, 0);
+                       panel->g_taskbar.bg_active = panel->g_taskbar.bg;
                if (panel->g_task.area.bg == 0)
                        panel->g_task.area.bg = &g_array_index(backgrounds, Background, 0);
 
@@ -85,7 +85,7 @@ void init_taskbar()
                panel->g_task.area._draw_foreground = draw_task;
                panel->g_task.area.redraw = 1;
                panel->g_task.area.on_screen = 1;
-               if (panel->g_task.config_asb_mask & (1<<TASK_NORMAL)) {
+               if ((panel->g_task.config_asb_mask & (1<<TASK_NORMAL)) == 0) {
                        panel->g_task.alpha[TASK_NORMAL] = 100;
                        panel->g_task.saturation[TASK_NORMAL] = 0;
                        panel->g_task.brightness[TASK_NORMAL] = 0;
This page took 0.021975 seconds and 4 git commands to generate.