all repos — openbox @ 39d94f0db04dc62bf44a24e152550e504cb6649d

openbox fork - make it a bit more like ryudo

no pointless using of the comma operator
Mikael Magnusson mikachu@comhem.se
commit

39d94f0db04dc62bf44a24e152550e504cb6649d

parent

e215fc0110de170fb69325b0b79b735ad80529fa

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M openbox/focus_cycle.copenbox/focus_cycle.c

@@ -346,9 +346,10 @@ * else within a million pixels */

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;