X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbattery%2Fbattery.c;fp=src%2Fbattery%2Fbattery.c;h=2b4780e24b7d87e30e94674bfc5423974e9cbd49;hb=221d2c2ed532ee90afc81a1053144b6336f97d95;hp=04c993486b8740c7938cbb401ac194a7580f783e;hpb=384247b181a3a7332d9e11b906685c4190da5fd1;p=chaz%2Ftint2 diff --git a/src/battery/battery.c b/src/battery/battery.c index 04c9934..2b4780e 100644 --- a/src/battery/battery.c +++ b/src/battery/battery.c @@ -238,6 +238,9 @@ void init_battery_panel(void *p) if (!battery_enabled) return; + if (battery->area.bg == 0) + battery->area.bg = &g_array_index(backgrounds, Background, 0); + battery->area.parent = p; battery->area.panel = p; battery->area._draw_foreground = draw_battery;