]> Dogcows Code - chaz/openbox/commitdiff
give the focus indicator a fixed width
authorDana Jansens <danakj@orodu.net>
Sun, 6 May 2007 05:37:45 +0000 (05:37 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 6 May 2007 05:37:45 +0000 (05:37 +0000)
openbox/focus.c

index 35a2e027c62b942b1e68236124e147656e3bbafa..cf65ff25a9b16cbeb8c6a87a09a060b292dbd67f 100644 (file)
@@ -37,6 +37,8 @@
 #include <glib.h>
 #include <assert.h>
 
+#define FOCUS_INDICATOR_WIDTH 5
+
 ObClient *focus_client = NULL;
 GList *focus_order = NULL;
 ObClient *focus_cycle_target = NULL;
@@ -340,10 +342,7 @@ void focus_cycle_draw_indicator()
         gint x, y, w, h;
         gint wt, wl, wr, wb;
 
-        wt = wl = wr = wb = MAX(3,
-                                MAX(1, MAX(ob_rr_theme->paddingx,
-                                           ob_rr_theme->paddingy)) * 2 +
-                                ob_rr_theme->fbwidth * 2);
+        wt = wl = wr = wb = FOCUS_INDICATOR_WIDTH;
 
         x = focus_cycle_target->frame->area.x;
         y = focus_cycle_target->frame->area.y;
This page took 0.023709 seconds and 4 git commands to generate.