all repos — openbox @ 5034073da7013210ef80f93eaa2cfefdd471f127

openbox fork - make it a bit more like ryudo

use the client_set_focused function when getting FocusIn/Out events
Dana Jansens danakj@orodu.net
commit

5034073da7013210ef80f93eaa2cfefdd471f127

parent

a3c9271ca2f7c48ab75398bb434f4c1ee705866a

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

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

@@ -319,22 +319,10 @@ Atom msgtype;

switch (e->type) { case FocusIn: - if (focus_client != client) - focus_set_client(client); - - /* focus state can affect the stacking layer */ - client_calc_layer(client); - - engine_frame_adjust_focus(client->frame); + client_set_focused(client, TRUE); break; case FocusOut: - if (focus_client == client) - focus_set_client(NULL); - - /* focus state can affect the stacking layer */ - client_calc_layer(client); - - engine_frame_adjust_focus(client->frame); + client_set_focused(client, FALSE); break; case ConfigureRequest: g_message("ConfigureRequest for window %lx", client->window);