diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-17 23:51:18 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-18 20:42:35 -0500 |
| commit | 58788c781713092c6aa3a4544f8a06cd499ec4fd (patch) | |
| tree | 2e39a89c3c286e4d5eb2d01672b7266b99023269 /openbox/prompt.c | |
| parent | b889d86e63c90a8e676309f74cd89897a80b4783 (diff) | |
the focus indicator line for prompt buttons wasn't being displayed, since the texture type was no longer being set
Diffstat (limited to 'openbox/prompt.c')
| -rw-r--r-- | openbox/prompt.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/openbox/prompt.c b/openbox/prompt.c index b964de29..84fe2d0d 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; |
