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
This commit is contained in:
parent
2a7ceb537d
commit
cfd2bde7e4
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue