dont set the focused client if it's already set

This commit is contained in:
Dana Jansens 2003-03-18 09:08:55 +00:00
parent 6e29605d41
commit 77bd016628

View file

@ -332,7 +332,8 @@ static void event_handle_client(Client *client, XEvent *e)
/* focus state can affect the stacking layer */ /* focus state can affect the stacking layer */
client_calc_layer(client); client_calc_layer(client);
focus_set_client(client); if (focus_client != client)
focus_set_client(client);
break; break;
case FocusOut: case FocusOut:
client->focused = FALSE; client->focused = FALSE;