From: Dana Jansens Date: Tue, 8 May 2007 02:31:46 +0000 (+0000) Subject: only show the debug message when relevent X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=f2e88d24910c1c4a8e6c0f89770a6abd36b6fbab;p=chaz%2Fopenbox only show the debug message when relevent --- diff --git a/openbox/event.c b/openbox/event.c index 1c640f13..ace3e861 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1047,9 +1047,10 @@ static void event_handle_client(ObClient *client, XEvent *e) (e->xclient.data.l[0] == 2 ? "user" : "INVALID")))); /* XXX make use of data.l[2] !? */ event_curtime = e->xclient.data.l[1]; - ob_debug_type(OB_DEBUG_APP_BUGS, - "_NET_ACTIVE_WINDOW message for window %s is " - "missing a timestamp\n", client->title); + if (event_curtime == 0) + ob_debug_type(OB_DEBUG_APP_BUGS, + "_NET_ACTIVE_WINDOW message for window %s is " + "missing a timestamp\n", client->title); client_activate(client, FALSE, (e->xclient.data.l[0] == 0 || e->xclient.data.l[0] == 2));