From 8d8f2511d4e863c7b63c1069be0a32adac15f0ef Mon Sep 17 00:00:00 2001 From: Thierry Lorthiois Date: Fri, 22 Jul 2011 10:02:07 +0000 Subject: [PATCH] Fix segfault when the tooltip has no background in config --- src/tooltip/tooltip.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.45.2