all repos — openbox @ 723ecebc2f3d359bf1bf335702541769e895be0f

openbox fork - make it a bit more like ryudo

use focus_hilite to ensure that when a wnidow thats not focused is hilighted, the hilight is removed when focus gets assigned
Dana Jansens danakj@orodu.net
commit

723ecebc2f3d359bf1bf335702541769e895be0f

parent

735ee9368918bbe067ac9c016bd7290290fe85fa

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

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

@@ -327,6 +327,15 @@ static void event_done(gpointer data)

{ static ObClient *last = NULL; + /* sometimes focus_hilite can be on an unfocused window, this make sure + it loses its focus hilite when focus moves */ + if (focus_hilite && + (focus_in && focus_hilite != focus_in) && + (focus_out && focus_hilite != focus_out)) + { + frame_adjust_focus(focus_hilite->frame, FALSE); + } + if (focus_in) { if (focus_in != focus_client) { focus_set_client(focus_in);

@@ -340,6 +349,8 @@ focus_set_client(NULL);

frame_adjust_focus(focus_out->frame, FALSE); client_calc_layer(focus_out); } + + focus_hilite = focus_in; if (focus_client != last) { if (!focus_client)