all repos — openbox @ b834f001869b9ec7d0600e031823063f4062d2f3

openbox fork - make it a bit more like ryudo

Only update the focus cycle indicator when already visible in frame.c to avoid overriding bar=no
Mikael Magnusson mikachu@gmail.com
commit

b834f001869b9ec7d0600e031823063f4062d2f3

parent

e59d06c7f3ede4911c8ab08c101f6b0322a0ea58

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

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

@@ -133,6 +133,12 @@ XDestroyWindow(ob_display, focus_indicator.right.window);

XDestroyWindow(ob_display, focus_indicator.bottom.window); } +void focus_cycle_update_indicator(ObClient *c) +{ + if (visible) + focus_cycle_draw_indicator(c); +} + void focus_cycle_draw_indicator(ObClient *c) { if (!c && visible) {
M openbox/focus_cycle_indicator.hopenbox/focus_cycle_indicator.h

@@ -25,6 +25,7 @@

void focus_cycle_indicator_startup(gboolean reconfig); void focus_cycle_indicator_shutdown(gboolean reconfig); +void focus_cycle_update_indicator(struct _ObClient *c); void focus_cycle_draw_indicator(struct _ObClient *c); #endif
M openbox/frame.copenbox/frame.c

@@ -851,7 +851,7 @@

/* if this occurs while we are focus cycling, the indicator needs to match the changes */ if (focus_cycle_target == self->client) - focus_cycle_draw_indicator(self->client); + focus_cycle_update_indicator(self->client); } if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR)) XResizeWindow(ob_display, self->label, self->label_width,