void focus_fallback(ObFocusFallbackType type)
{
- ObClient *new = focus_fallback_target(type);
+ ObClient *new;
/* unfocus any focused clients.. they can be focused by Pointer events
and such, and then when I try focus them, I won't get a FocusIn event
*/
focus_set_client(NULL);
- if (new)
+ if ((new = focus_fallback_target(type)))
client_focus(new);
}