From: Mikael Magnusson Date: Sun, 22 Apr 2007 18:26:05 +0000 (+0000) Subject: don't compare client pointers with random numbers X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=7c1fb96bd33a97c9be55e5fcfae6cf7d625acbb6;p=chaz%2Fopenbox don't compare client pointers with random numbers --- diff --git a/openbox/event.c b/openbox/event.c index ca60d6f3..6f819cc1 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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)