all repos — openbox @ 857245960e4a35f9307f1b6124a4b7b4e726298b

openbox fork - make it a bit more like ryudo

give the focus indicator a fixed width
Dana Jansens danakj@orodu.net
commit

857245960e4a35f9307f1b6124a4b7b4e726298b

parent

affc84cc96e9e3eebfea66fd6a987e6ef4217dc1

1 files changed, 3 insertions(+), 4 deletions(-)

jump to
M openbox/focus.copenbox/focus.c

@@ -37,6 +37,8 @@ #include <X11/Xlib.h>

#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 @@ */

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;