From: Dana Jansens Date: Mon, 18 Feb 2008 04:51:18 +0000 (-0500) Subject: the focus indicator line for prompt buttons wasn't being displayed, since the texture... X-Git-Tag: release-3.4.7-pre1~10^2~2 X-Git-Url: http://git.openbox.org/?p=mikachu%2Fopenbox.git;a=commitdiff_plain;h=58788c781713092c6aa3a4544f8a06cd499ec4fd the focus indicator line for prompt buttons wasn't being displayed, since the texture type was no longer being set --- diff --git a/openbox/prompt.c b/openbox/prompt.c index b964de2..84fe2d0 100644 --- a/openbox/prompt.c +++ b/openbox/prompt.c @@ -351,14 +351,10 @@ static void prompt_resize(ObPrompt *self, gint w, gint h) static void setup_button_focus_tex(ObPromptElement *e, RrAppearance *a, gboolean on) { - gint l, r, t, b; - - if (!on) { - gint i; + gint i, l, r, t, b; - for (i = 1; i < 5; ++i) - a->texture[i].type = on ? RR_TEXTURE_LINE_ART : RR_TEXTURE_NONE; - } + for (i = 1; i < 5; ++i) + a->texture[i].type = on ? RR_TEXTURE_LINE_ART : RR_TEXTURE_NONE; if (!on) return;