static gboolean focus_target_has_siblings(ObClient *ft,
gboolean iconic_windows,
gboolean all_desktops)
-
+
{
GSList *it;
ok = ok && ((dock_windows && ft->type == OB_CLIENT_TYPE_DOCK) ||
(desktop_windows && ft->type == OB_CLIENT_TYPE_DESKTOP));
/* modal windows are important and can always get focus if they are
- visible and stuff, so don't change 'ok' based on their type */
+ visible and stuff, so don't change 'ok' based on their type */
else if (!ft->modal)
/* normal non-helper windows are valid targets */
ok = ok &&
include helper windows ... */
((focus_client && ft->group == focus_client->group &&
helper_windows) ||
- /* ... or if there are no other windows in its group
+ /* ... or if there are no other windows in its group
that can be focused instead */
!focus_target_has_siblings(ft, iconic_windows, all_desktops))));