diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 10:24:24 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 10:24:24 +0000 |
| commit | 5034073da7013210ef80f93eaa2cfefdd471f127 (patch) | |
| tree | 13a7bc33874beb61d4fb108bb829c473ee70a766 /openbox | |
| parent | a3c9271ca2f7c48ab75398bb434f4c1ee705866a (diff) | |
use the client_set_focused function when getting FocusIn/Out events
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/event.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/openbox/event.c b/openbox/event.c index b5f24eb8..68615fac 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -319,22 +319,10 @@ static void event_handle_client(Client *client, XEvent *e) 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); |
