]> Dogcows Code - chaz/tint2/commitdiff
Fix segfault when the tooltip has no background in config
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Fri, 22 Jul 2011 10:02:07 +0000 (10:02 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Fri, 22 Jul 2011 10:02:07 +0000 (10:02 +0000)
src/tooltip/tooltip.c

index 05da0d03588a7aa9c2647431607641bf0d835af1..714e0a324d6af8eb407bb86eedfca38959d44f71 100644 (file)
@@ -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;
This page took 0.029203 seconds and 4 git commands to generate.