summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2007-05-29 00:14:56 +0000
committerMikael Magnusson <mikachu@comhem.se>2007-05-29 00:14:56 +0000
commit39d94f0db04dc62bf44a24e152550e504cb6649d (patch)
tree10a8b69256b2cc7b52c6ad569f05ba9faad1fabf /openbox
parente215fc0110de170fb69325b0b79b735ad80529fa (diff)
no pointless using of the comma operator
Diffstat (limited to 'openbox')
-rw-r--r--openbox/focus_cycle.c7
1 files changed, 4 insertions, 3 deletions
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;