X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftaskbar%2Ftaskbar.c;h=38d1f09d29ab2dd4ca731adf6d6e36c21b048d3f;hb=0caca7524827e38c9d076f33dc66416d189184e8;hp=a883523e124a004a3de0af00f82f97a8e1480721;hpb=2f3cf28063b0fe40cdbdb3e605deeb572973cb7f;p=chaz%2Ftint2 diff --git a/src/taskbar/taskbar.c b/src/taskbar/taskbar.c index a883523..38d1f09 100644 --- a/src/taskbar/taskbar.c +++ b/src/taskbar/taskbar.c @@ -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<g_task.config_asb_mask & (1<g_task.alpha[TASK_NORMAL] = 100; panel->g_task.saturation[TASK_NORMAL] = 0; panel->g_task.brightness[TASK_NORMAL] = 0; @@ -166,7 +166,11 @@ void init_taskbar() } } -void taskbar_remove_task(gpointer key, gpointer value, gpointer user_data) {remove_task(task_get_task(*(Window*)key)); } +void taskbar_remove_task(gpointer key, gpointer value, gpointer user_data) +{ + remove_task(task_get_task(*(Window*)key)); +} + void cleanup_taskbar() { Panel *panel;