all repos — openbox @ b7e23f286a53b7beb259afac7e1a4cdf5fca47a4

openbox fork - make it a bit more like ryudo

make the focus cycle indicator be in the window_map so button presses on it are handled right
Dana Jansens danakj@orodu.net
commit

b7e23f286a53b7beb259afac7e1a4cdf5fca47a4

parent

22333336d3ba36784955c67444f996b557f3838a

1 files changed, 13 insertions(+), 0 deletions(-)

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

@@ -82,6 +82,14 @@ stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.top));

stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.left)); stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.right)); stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.bottom)); + g_hash_table_insert(window_map, &focus_indicator.top.win, + &focus_indicator.top); + g_hash_table_insert(window_map, &focus_indicator.left.win, + &focus_indicator.left); + g_hash_table_insert(window_map, &focus_indicator.right.win, + &focus_indicator.right); + g_hash_table_insert(window_map, &focus_indicator.bottom.win, + &focus_indicator.bottom); color_white = RrColorNew(ob_rr_inst, 0xff, 0xff, 0xff);

@@ -107,6 +115,11 @@

RrColorFree(color_white); RrAppearanceFree(a_focus_indicator); + + g_hash_table_remove(window_map, &focus_indicator.top.win); + g_hash_table_remove(window_map, &focus_indicator.left.win); + g_hash_table_remove(window_map, &focus_indicator.right.win); + g_hash_table_remove(window_map, &focus_indicator.bottom.win); stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.top)); stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.left));