gboolean nomove = FALSE;
XEvent ce;
- if (client) {
- frame_adjust_focus(client->frame, FALSE);
- /* focus_set_client(NULL) has already been called in this
- section or by focus_fallback */
- client_calc_layer(client);
- }
-
/* Look for the followup FocusIn */
if (!XCheckIfEvent(ob_display, &ce, event_look_for_focusin, NULL)) {
/* There is no FocusIn, this means focus went to a window that
focus_fallback(TRUE);
}
}
+
+ if (client && client != focus_client) {
+ frame_adjust_focus(client->frame, FALSE);
+ /* focus_set_client(NULL) has already been called in this
+ section or by focus_fallback */
+ client_calc_layer(client);
+ }
} else if (timewinclients)
event_handle_user_time_window_clients(timewinclients, e);
else if (client)