use the client_set_focused function when getting FocusIn/Out events
This commit is contained in:
parent
a3c9271ca2
commit
5034073da7
1 changed files with 2 additions and 14 deletions
|
@ -319,22 +319,10 @@ static void event_handle_client(Client *client, XEvent *e)
|
||||||
|
|
||||||
switch (e->type) {
|
switch (e->type) {
|
||||||
case FocusIn:
|
case FocusIn:
|
||||||
if (focus_client != client)
|
client_set_focused(client, TRUE);
|
||||||
focus_set_client(client);
|
|
||||||
|
|
||||||
/* focus state can affect the stacking layer */
|
|
||||||
client_calc_layer(client);
|
|
||||||
|
|
||||||
engine_frame_adjust_focus(client->frame);
|
|
||||||
break;
|
break;
|
||||||
case FocusOut:
|
case FocusOut:
|
||||||
if (focus_client == client)
|
client_set_focused(client, FALSE);
|
||||||
focus_set_client(NULL);
|
|
||||||
|
|
||||||
/* focus state can affect the stacking layer */
|
|
||||||
client_calc_layer(client);
|
|
||||||
|
|
||||||
engine_frame_adjust_focus(client->frame);
|
|
||||||
break;
|
break;
|
||||||
case ConfigureRequest:
|
case ConfigureRequest:
|
||||||
g_message("ConfigureRequest for window %lx", client->window);
|
g_message("ConfigureRequest for window %lx", client->window);
|
||||||
|
|
Loading…
Reference in a new issue