diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2007-05-29 00:14:56 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2007-05-29 00:14:56 +0000 |
| commit | 39d94f0db04dc62bf44a24e152550e504cb6649d (patch) | |
| tree | 10a8b69256b2cc7b52c6ad569f05ba9faad1fabf /openbox/focus_cycle.c | |
| parent | e215fc0110de170fb69325b0b79b735ad80529fa (diff) | |
no pointless using of the comma operator
Diffstat (limited to 'openbox/focus_cycle.c')
| -rw-r--r-- | openbox/focus_cycle.c | 7 |
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; |
