]> Dogcows Code - chaz/openbox/commitdiff
don't compare client pointers with random numbers
authorMikael Magnusson <mikachu@comhem.se>
Sun, 22 Apr 2007 18:26:05 +0000 (18:26 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sun, 22 Apr 2007 18:26:05 +0000 (18:26 +0000)
openbox/event.c

index ca60d6f3c592828d2351a4d624aa51c22a07c89a..6f819cc1f4c0838524d03fdd590d416e95fb3e23 100644 (file)
@@ -1352,8 +1352,8 @@ static void focus_delay_dest(gpointer data)
 
 static gboolean focus_delay_cmp(gconstpointer d1, gconstpointer d2)
 {
-    const ObFocusDelayData *f1 = d1, *f2 = d2;
-    return f1->client == f2->client;
+    const ObFocusDelayData *f1 = d1;
+    return f1->client == d2;
 }
 
 static gboolean focus_delay_func(gpointer data)
This page took 0.023449 seconds and 4 git commands to generate.