give the focus indicator a fixed width
This commit is contained in:
parent
affc84cc96
commit
857245960e
1 changed files with 3 additions and 4 deletions
|
@ -37,6 +37,8 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#define FOCUS_INDICATOR_WIDTH 5
|
||||||
|
|
||||||
ObClient *focus_client = NULL;
|
ObClient *focus_client = NULL;
|
||||||
GList *focus_order = NULL;
|
GList *focus_order = NULL;
|
||||||
ObClient *focus_cycle_target = NULL;
|
ObClient *focus_cycle_target = NULL;
|
||||||
|
@ -340,10 +342,7 @@ void focus_cycle_draw_indicator()
|
||||||
gint x, y, w, h;
|
gint x, y, w, h;
|
||||||
gint wt, wl, wr, wb;
|
gint wt, wl, wr, wb;
|
||||||
|
|
||||||
wt = wl = wr = wb = MAX(3,
|
wt = wl = wr = wb = FOCUS_INDICATOR_WIDTH;
|
||||||
MAX(1, MAX(ob_rr_theme->paddingx,
|
|
||||||
ob_rr_theme->paddingy)) * 2 +
|
|
||||||
ob_rr_theme->fbwidth * 2);
|
|
||||||
|
|
||||||
x = focus_cycle_target->frame->area.x;
|
x = focus_cycle_target->frame->area.x;
|
||||||
y = focus_cycle_target->frame->area.y;
|
y = focus_cycle_target->frame->area.y;
|
||||||
|
|
Loading…
Reference in a new issue