all repos — openbox @ 40f20e93cadcece50a401f521a46bb1ad23b0913

openbox fork - make it a bit more like ryudo

move some code aaround for focusing. proper layer calculation for fullscreen windows based on focus. hopeuflly not break sometihng else.
Dana Jansens danakj@orodu.net
commit

40f20e93cadcece50a401f521a46bb1ad23b0913

parent

c371c6d4a3004d2e1f47896372ed90133d4801d8

1 files changed, 7 insertions(+), 7 deletions(-)

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

@@ -539,13 +539,6 @@ } else if (e->type == FocusOut) {

gboolean nomove = FALSE; XEvent ce; - if (client) { - frame_adjust_focus(client->frame, FALSE); - /* focus_set_client(NULL) has already been called in this - section or by focus_fallback */ - client_calc_layer(client); - } - /* Look for the followup FocusIn */ if (!XCheckIfEvent(ob_display, &ce, event_look_for_focusin, NULL)) { /* There is no FocusIn, this means focus went to a window that

@@ -580,6 +573,13 @@ "Focus went to an unmanaged window 0x%x !\n",

ce.xfocus.window); focus_fallback(TRUE); } + } + + if (client && client != focus_client) { + frame_adjust_focus(client->frame, FALSE); + /* focus_set_client(NULL) has already been called in this + section or by focus_fallback */ + client_calc_layer(client); } } else if (timewinclients) event_handle_user_time_window_clients(timewinclients, e);