- XDestroyWindow(ob_display, focus_indicator.top.win);
- XDestroyWindow(ob_display, focus_indicator.left.win);
- XDestroyWindow(ob_display, focus_indicator.right.win);
- XDestroyWindow(ob_display, focus_indicator.bottom.win);
+ g_hash_table_remove(window_map, &focus_indicator.top.window);
+ g_hash_table_remove(window_map, &focus_indicator.left.window);
+ g_hash_table_remove(window_map, &focus_indicator.right.window);
+ g_hash_table_remove(window_map, &focus_indicator.bottom.window);
+
+ stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.top));
+ stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.left));
+ 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);
+}
+
+void focus_cycle_update_indicator(ObClient *c)
+{
+ if (visible)
+ focus_cycle_draw_indicator(c);