X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.c;h=0dafd799b5f2d41e50ca97d295657a9141597966;hb=77baf26a7f2f64ddf1274035fd4991ab17345904;hp=9a0b2bdc31b466c21ab6c151fbed345c2225ed5c;hpb=e5a797f10d61e33f5d02c2d276f615ea3a00793f;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index 9a0b2bdc..0dafd799 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -274,7 +274,7 @@ ObClient *focus_order_find_first(guint desktop) static gboolean focus_target_has_siblings(ObClient *ft, gboolean iconic_windows, gboolean all_desktops) - + { GSList *it; @@ -320,7 +320,7 @@ gboolean focus_valid_target(ObClient *ft, 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 && @@ -332,7 +332,7 @@ gboolean focus_valid_target(ObClient *ft, 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))));