Only update the focus cycle indicator when already visible in frame.c to avoid overriding bar=no
This commit is contained in:
parent
e59d06c7f3
commit
b834f00186
3 changed files with 8 additions and 1 deletions
|
@ -133,6 +133,12 @@ void focus_cycle_indicator_shutdown(gboolean reconfig)
|
||||||
XDestroyWindow(ob_display, focus_indicator.bottom.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)
|
void focus_cycle_draw_indicator(ObClient *c)
|
||||||
{
|
{
|
||||||
if (!c && visible) {
|
if (!c && visible) {
|
||||||
|
|
|
@ -25,6 +25,7 @@ struct _ObClient;
|
||||||
void focus_cycle_indicator_startup(gboolean reconfig);
|
void focus_cycle_indicator_startup(gboolean reconfig);
|
||||||
void focus_cycle_indicator_shutdown(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);
|
void focus_cycle_draw_indicator(struct _ObClient *c);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -851,7 +851,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
|
||||||
/* if this occurs while we are focus cycling, the indicator needs to
|
/* if this occurs while we are focus cycling, the indicator needs to
|
||||||
match the changes */
|
match the changes */
|
||||||
if (focus_cycle_target == self->client)
|
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))
|
if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR))
|
||||||
XResizeWindow(ob_display, self->label, self->label_width,
|
XResizeWindow(ob_display, self->label, self->label_width,
|
||||||
|
|
Loading…
Reference in a new issue