X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus_cycle.c;h=7774076785e43050fcbd61c0172117b7afae9f76;hb=5e50b406d06147bfce746c24b5341321d55c4a3f;hp=bfbc272315e180ed00edf8f3769b771ef6ea22da;hpb=e215fc0110de170fb69325b0b79b735ad80529fa;p=chaz%2Fopenbox diff --git a/openbox/focus_cycle.c b/openbox/focus_cycle.c index bfbc2723..77740767 100644 --- a/openbox/focus_cycle.c +++ b/openbox/focus_cycle.c @@ -346,9 +346,10 @@ static ObClient *focus_find_directional(ObClient *c, ObDirection dir, if (offset > distance) score += 1000000; - if (best_score == -1 || score < best_score) - best_client = cur, - best_score = score; + if (best_score == -1 || score < best_score) { + best_client = cur; + best_score = score; + } } return best_client;