return desktop;
}
-void focus_fallback(gboolean allow_refocus)
+ObClient* focus_fallback(gboolean allow_refocus)
{
ObClient *new;
ObClient *old = focus_client;
*/
focus_nothing();
- if ((new = focus_fallback_target(allow_refocus, old)))
+ if ((new = focus_fallback_target(allow_refocus, old))) {
client_focus(new);
+ return new;
+ } else
+ return NULL;
}
void focus_nothing()