From: Thierry Lorthiois Date: Fri, 22 Jul 2011 10:02:07 +0000 (+0000) Subject: Fix segfault when the tooltip has no background in config X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=8d8f2511d4e863c7b63c1069be0a32adac15f0ef;p=chaz%2Ftint2 Fix segfault when the tooltip has no background in config --- diff --git a/src/tooltip/tooltip.c b/src/tooltip/tooltip.c index 05da0d0..714e0a3 100644 --- a/src/tooltip/tooltip.c +++ b/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;