]> Dogcows Code - chaz/openbox/commitdiff
the focus indicator line for prompt buttons wasn't being displayed, since the texture...
authorDana Jansens <danakj@orodu.net>
Mon, 18 Feb 2008 04:51:18 +0000 (23:51 -0500)
committerDana Jansens <danakj@orodu.net>
Tue, 19 Feb 2008 01:42:35 +0000 (20:42 -0500)
openbox/prompt.c

index b964de29669f2ea35c3dd246ebcdee0d1acfffce..84fe2d0d8dcd0cb00979237dceb461747413126a 100644 (file)
@@ -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;
 
This page took 0.030523 seconds and 4 git commands to generate.