all repos — openbox @ 9eed0756a4b5b27276978a33310afd18540ec609

openbox fork - make it a bit more like ryudo

add the focus cycle indicator to directional focus cycling
Dana Jansens danakj@orodu.net
commit

9eed0756a4b5b27276978a33310afd18540ec609

parent

b93b8cec4ebad929cc02a472ed4850ac00dda72b

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

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

@@ -523,12 +523,6 @@ GList *it, *start, *list;

ObClient *ft = NULL; if (cancel) { - /* - if (focus_cycle_target) - frame_adjust_focus(focus_cycle_target->frame, FALSE); - if (focus_client) - frame_adjust_focus(focus_client->frame, TRUE); - */ focus_cycle_target = NULL; goto done_cycle; } else if (done && dialog) {

@@ -591,10 +585,6 @@ static ObClient *first = NULL;

ObClient *ft = NULL; if (cancel) { - if (focus_cycle_target) - frame_adjust_focus(focus_cycle_target->frame, FALSE); - if (focus_client) - frame_adjust_focus(focus_client->frame, TRUE); focus_cycle_target = NULL; goto done_cycle; } else if (done && dialog) {

@@ -619,10 +609,8 @@ }

if (ft) { if (ft != focus_cycle_target) {/* prevents flicker */ - if (focus_cycle_target) - frame_adjust_focus(focus_cycle_target->frame, FALSE); focus_cycle_target = ft; - frame_adjust_focus(focus_cycle_target->frame, TRUE); + focus_cycle_draw_indicator(); } } if (focus_cycle_target) {

@@ -639,6 +627,7 @@

first = NULL; focus_cycle_target = NULL; + focus_cycle_draw_indicator(); popup_cycle(ft, FALSE); return;