Fix segfault when the tooltip has no background in config git-svn-id: http://tint2.googlecode.com/svn/trunk@639 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/tooltip/tooltip.c
→
src/tooltip/tooltip.c
@@ -62,6 +62,8 @@ void init_tooltip()
{ if (!g_tooltip.font_desc) g_tooltip.font_desc = pango_font_description_from_string("sans 10"); + if (g_tooltip.bg == 0) + g_tooltip.bg = &g_array_index(backgrounds, Background, 0); XSetWindowAttributes attr; attr.override_redirect = True;