all repos — tint2 @ 37ee594f6a7e63dad6c843e38f0feb27112c8af9

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Fix segfault when the clock has no background in config

git-svn-id: http://tint2.googlecode.com/svn/trunk@625 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

37ee594f6a7e63dad6c843e38f0feb27112c8af9

parent

a8b217e0710f825a15850ebb888a73839db070d8

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/clock/clock.csrc/clock/clock.c

@@ -143,7 +143,9 @@ void init_clock_panel(void *p)

{ Panel *panel =(Panel*)p; Clock *clock = &panel->clock; - + + if (clock->area.bg == 0) + clock->area.bg = &g_array_index(backgrounds, Background, 0); clock->area.parent = p; clock->area.panel = p; clock->area._draw_foreground = draw_clock;