stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.right));
stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.bottom));
- XDestroyWindow(ob_display, focus_indicator.top.window);
- XDestroyWindow(ob_display, focus_indicator.left.window);
- XDestroyWindow(ob_display, focus_indicator.right.window);
- XDestroyWindow(ob_display, focus_indicator.bottom.window);
+ XDestroyWindow(obt_display, focus_indicator.top.window);
+ XDestroyWindow(obt_display, focus_indicator.left.window);
+ XDestroyWindow(obt_display, focus_indicator.right.window);
+ XDestroyWindow(obt_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) {
/* 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,
+ XResizeWindow(obt_display, self->label, self->label_width,
ob_rr_theme->label_height);
}