]> Dogcows Code - chaz/openbox/commitdiff
no pointless using of the comma operator
authorMikael Magnusson <mikachu@comhem.se>
Tue, 29 May 2007 00:14:56 +0000 (00:14 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Tue, 29 May 2007 00:14:56 +0000 (00:14 +0000)
openbox/focus_cycle.c

index bfbc272315e180ed00edf8f3769b771ef6ea22da..7774076785e43050fcbd61c0172117b7afae9f76 100644 (file)
@@ -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;
This page took 0.025534 seconds and 4 git commands to generate.