all repos — openbox @ c7e818abd78c3f2207d28e8035a46b58593be5f9

openbox fork - make it a bit more like ryudo

dont focus !normal windows on enter events
Dana Jansens danakj@orodu.net
commit

c7e818abd78c3f2207d28e8035a46b58593be5f9

parent

e094bd40f3212fdb71f34256b4fc2c6b04469132

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

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

@@ -349,17 +349,21 @@ client_calc_layer(client);

engine_frame_adjust_focus(client->frame); break; case EnterNotify: - if (ob_state == State_Starting) { - /* move it to the top of the focus order */ - guint desktop = client->desktop; - if (desktop == DESKTOP_ALL) desktop = screen_desktop; - focus_order[desktop] = g_list_remove(focus_order[desktop], client); - focus_order[desktop] = g_list_prepend(focus_order[desktop],client); - } else { - if (!config_get("focusFollowsMouse", Config_Bool, &focus_follow)) - g_assert_not_reached(); - if (focus_follow.bool) - client_focus(client); + if (client_normal(client)) { + if (ob_state == State_Starting) { + /* move it to the top of the focus order */ + guint desktop = client->desktop; + if (desktop == DESKTOP_ALL) desktop = screen_desktop; + focus_order[desktop] = g_list_remove(focus_order[desktop], + client); + focus_order[desktop] = g_list_prepend(focus_order[desktop], + client); + } else { + if (!config_get("focusFollowsMouse",Config_Bool,&focus_follow)) + g_assert_not_reached(); + if (focus_follow.bool) + client_focus(client); + } } break; case ConfigureRequest: