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 bfbc272..7774076 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;